javascript - jQueryMobile Tap to Stop Scrolling -


hi i'm using jquery mobile build cross platform mobile app , have following issue:

whenever there list many items, user scrolls down , when taps stop scrolling, item gets clicked instead of stopping scroll, should do?

i had same issue, solved creating flag variable gets turned off on stopscroll jqm event.

var tapflag = true; $(document).on("scrollstart",function(){     tapflag = false; }); $(document).on("scrollstop",function(){     tapflag = true; }); 

and allow items tapped if tap flag true.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -