ng-touchstart and ng-touchend in Angularjs

前端 未结 3 2006
名媛妹妹
名媛妹妹 2021-01-04 01:41

I have an element which fires functions on ng-mousedown and ng-mouseup. However, It doesn\'t work on touch screen, is there any directive like

3条回答
  •  心在旅途
    2021-01-04 02:09

    I have made those ealier today since I needed it myself:

    • ngTouch (a collection of the below)
    • ngTouchmove
    • ngTouchstart
    • ngTouchend

    Hope it helps.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题