133
rated 0 times
[
136]
[
3]
/ answers: 1 / hits: 35661
/ 10 Years ago, thu, may 22, 2014, 12:00:00
Is there a way to implement swipe gesture navigation on a jQuery Mobile multi-page template mobile website/application?
I can put together a deadset easy construct as follows:
$(body).bind(swipeleft, function(e) {
$.mobile.changePage( 'about.html', { transition: slide });
But the moment I start using anchor tags (multi-page JQM style), the event does not work:
$(body).bind(swipeleft, function(e) {
$.mobile.changePage( '#points2', { transition: slide });
Is there a suitable workaround for this or would I have to abandon the multi-page setup to get this to work?
More From » jquery