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();
}
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.
swipe
method in jQueryMobile does not return a swipe direction. In fact, I don't believe it can register and up/down swipe either. –
Matlick You can use this jquery plugin
With jQueryMobile you can use several events, such as swipe
, or even swipeleft
, swiperight
, tap
, etc.
swipe
method in jQueryMobile does not return a swipe direction. In fact, I don't believe it can register and up/down swipe either. –
Matlick A much nicer plugin for handling swipes ( if that's all you want ) is Touch Swipe.
I found the touchwipe to be pretty rubbish, and I always find jQueryMobile way to heavy when all you want is this functionality.
© 2022 - 2024 — McMap. All rights reserved.