JavaScript 手势库

发布于 2024-12-04 07:20:22 字数 359 浏览 2 评论 0原文

我正在寻找一个好的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

杀手六號 2024-12-11 07:20:22

查看 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.

何时共饮酒 2024-12-11 07:20:22

您可以在 github 上查看 Hammer.js。它具有您要求的所有手势

You can checkout Hammer.js on github. It has all the gesture you asked for

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文