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
Post a Comment