什么是用于触摸手势的优秀JavaScript库或jQuery插件? [英] What is a good JavaScript library or jQuery plugin for touch gestures?
问题描述
我不需要像Sencha或jQuery mobile这样的完整框架,只需检测swype或pinch等手势就可以优化我的网站部分触控设备。
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.
我从未使用过触摸事件,所以我真的不知道从哪里开始。有没有一个轻量级框架或jQuery插件?
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?
推荐答案
你可以检查出来: Hammer.js ,你可以独立运行或作为jQuery插件运行,
QuoJS ,这是一个微博客,它应该与jQuery一起使用。
如果您打算使用jQuery UI,那么 touchpunch 应该可以胜任!
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!
这篇关于什么是用于触摸手势的优秀JavaScript库或jQuery插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!