我只是在寻找一个能够检测手指在触摸设备上滑动的监听器。
例如;
if (swipe.direction == 'left' ) {
function();
}
通过 jQueryMobile,您可以使用多个事件,例如swipe
, 甚至swipeleft
, swiperight
, tap
, etc.
http://jquerymobile.com/test/docs/api/events.html http://jquerymobile.com/test/docs/api/events.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)