How to get swipe up and swipe down event in jQuery Mobile? [duplicate]

浪尽此生 提交于 2019-12-29 08:36:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!