I'm simply looking for a listener that will detect the swipe of a finger on a touch device.
For example;
if (swipe.direction == 'left' ) {
function();
}
With jQueryMobile you can use several events, such as swipe
, or even swipeleft
, swiperight
, tap
, etc.
http://jquerymobile.com/test/docs/api/events.html
You can use this jquery plugin
http://www.netcu.de/jquery-touchwipe-iphone-ipad-library
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With