问题
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