使用jQuery检测iPhone Swipe

Ant*_*ore 8 iphone jquery function touch swipe

我只是在寻找能够检测触摸设备上手指滑动的聆听者.

例如;

 if (swipe.direction == 'left' ) {
     function();
 }
Run Code Online (Sandbox Code Playgroud)

Leo*_*lis 4

通过 jQueryMobile,您可以使用多个事件,例如swipe、 甚至swipeleftswiperighttap等。

http://jquerymobile.com/test/docs/api/events.html