I'm looking for a good javascript library for gestures (like swipe, tap, doubletap, pinch, etc) for use on mobile browsers. The library should have cross-browser support and should be relatively lightweight.
I'm currently using phone gap with backbone.js and jquery. I've looked into jQuery mobile, Sencha touch, and jGestures plugin, and haven't found one that provides gestures AND works on the key mobile browsers. The closest thing is which only works for webkit.
Does anyone have any suggestions? Thanks!
I'm looking for a good javascript library for gestures (like swipe, tap, doubletap, pinch, etc) for use on mobile browsers. The library should have cross-browser support and should be relatively lightweight.
I'm currently using phone gap with backbone.js and jquery. I've looked into jQuery mobile, Sencha touch, and jGestures plugin, and haven't found one that provides gestures AND works on the key mobile browsers. The closest thing is http://plugins.jquery./project/touchSwipe which only works for webkit.
Does anyone have any suggestions? Thanks!
Share Improve this question asked Sep 11, 2011 at 19:16 SteveSteve 2,1485 gold badges25 silver badges36 bronze badges 3- By key browsers do you mean...? If phone does not provide support nothing would work – nLL Commented Sep 11, 2011 at 19:42
- It would be helpful if you could clarify what you consider to be the "key mobile browsers". Is something that targets the W3C Touch Events Spec sufficient? As far as I know, it is currently only supported by WebKit on iOS & Android. – daxelrod Commented Sep 11, 2011 at 19:43
- As a followup, it looks like Opera Mobile supports Touch Events as well. – daxelrod Commented Sep 13, 2011 at 4:44
2 Answers
Reset to default 3Take a look at Alex Gibson's shake, touch and slider plug-ins located at:
Alex Gibson's MiniApps
They are all MIT licensed and will hopefully suit your needs.
You can checkout Hammer.js on github. It has all the gesture you asked for
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744889240a4599302.html
评论列表(0条)