如题所示,如何在网页上web app上添加手势触控(pinch zoom, touch move, tap)
多了去了...
Hammer.js
原生或者手势的插件有不少,这里列举几个使用过的,还不错。
-
利用原生 API
touchstart: // 手指放到屏幕上的时候触发 touchmove: // 手指在屏幕上移动的时候触发 touchend: // 手指从屏幕上拿起的时候触发 touchcancel: // 系统取消touch事件的时候触发。
-
利用 jQuery Mobile 的 API
swipeleft swiperight
推荐 Baidu 的一个框架 touch.js