问题
Can you please tell me how to get the "swipe up" and "swipe down" events in jQuery Mobile? I am able to get "swipe right" and "swipe left" event.
Can I use third party library? Can you please give one alert/console in fiddle to get these event?
回答1:
it is the same as my question
FIDDLE
just ill show you how to use swipe up and down events..
$('#mydiv').on('swipedown',function(){alert("swipedown..");} );
$('#mydiv').on('swipeup',function(){alert("swipeup..");} );
来源:https://stackoverflow.com/questions/19808917/how-to-get-swipe-up-and-swipe-down-event-in-jquery-mobile