What is a good JavaScript library or jQuery plugin for touch gestures? [closed]

我怕爱的太早我们不能终老 提交于 2019-12-18 19:14:18

问题


I don´t need a full fledged framework like Sencha or jQuery mobile, just the ability to detect gestures such as swype or pinch to optimize some parts of my site for touch devices.

I have never worked with touch events so I dont really know where to start. Is there a light framework or jQuery plugin for this?


回答1:


You can check those out: Hammer.js, which you can run standalone or as a jQuery plugin, QuoJS, which is a microlibrary it should work fine alongside jQuery. If you are planning to use jQuery UI then touchpunch should do the job!




回答2:


TouchSwipe should meet your needs :)




回答3:


Since you've tagged it jquery, I'll recommend jQTouch.




回答4:


I've written a jQuery Plugin: TouchIt it converts touch events to mouse events. The blog post includes a link to GitHub.



来源:https://stackoverflow.com/questions/8801058/what-is-a-good-javascript-library-or-jquery-plugin-for-touch-gestures

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!