JavaScript 手势库
我正在寻找一个好的 javascript 库,用于在移动浏览器上使用的手势(如滑动、点击、双击、捏合等)。该库应该具有跨浏览器支持并且应该相对轻量级。
我目前正在使用电话间隙与backbone.js 和jquery。我研究了 jQuery mobile、Sencha touch 和 jGestures 插件,但没有找到一个可以提供手势并适用于主要移动浏览器的插件。最接近的是 http://plugins.jquery.com/project/touchSwipe ,它仅适用于网络工具包。
有人有什么建议吗? 谢谢!
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.com/project/touchSwipe which only works for webkit.
Does anyone have any suggestions?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 Alex Gibson 的摇动、触摸和滑块插件,位于:
Alex Gibson 的 MiniApps
它们是所有 MIT 许可的产品都有望满足您的需求。
Take 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.
您可以在 github 上查看 Hammer.js。它具有您要求的所有手势
You can checkout Hammer.js on github. It has all the gesture you asked for