javascript - How make angular js draggable elements work on tablet (on touch) - Stack Overflow

I am working on Angular JS draggable directive. My code is similar to this PlunkerBoth my code and this

I am working on Angular JS draggable directive. My code is similar to this Plunker

Both my code and this plunker work perfectly on windows when operating with mouse. But on any tab where touch is involved it is not working at all. what might be the reason behind this? any idea how to make it work?

I am working on Angular JS draggable directive. My code is similar to this Plunker

Both my code and this plunker work perfectly on windows when operating with mouse. But on any tab where touch is involved it is not working at all. what might be the reason behind this? any idea how to make it work?

Share Improve this question asked Jan 2, 2014 at 12:07 Aditya PonksheAditya Ponkshe 3,9104 gold badges42 silver badges58 bronze badges 1
  • 1 Hey did you manage to make it work? If so an example would be great! – w0ns88 Commented Apr 5, 2017 at 12:19
Add a ment  | 

1 Answer 1

Reset to default 4

A directive was implemented to control touch events, it is ngTouch. You can find more information here:

http://docs.angularjs/api/ngTouch

I additionally I think this post can be helpful:

Javascript Drag and drop for touch devices

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744596004a4582894.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信