html - jQuery - Detect scroll amount -


on mobile devices, if there list of items , user touches one, highlighted indicate user touching it. once user begins scroll (swipe or down), highlight disappears user knows not going activate button anymore when release finger.

i want similar on mobile, need detect when element scrolled remove highlight on list item. however, jquery scroll event seems fired @ same time touchbegin, not when element scrolled. in order work, i'll need detect few pixels of scrolling before removing highlighting. best way me achieve this?

i found solution, touchcancel event works since fired when scrolling begins.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -