I am currently working on something that uses $(window).bind('scroll' but the problem I am having is that on iPad and other touch devices the scroll event is only fired when the users stops moving and removes their finger. I have tried using touchmove but can't figure out how to get $(window).scrollTop() accurately. Does anyone have any ideas?
Jquery – Scroll event on touchmove with jquery
ipadjqueryscrolltouch
Related Topic
- Javascript – Get current URL with jQuery
- Javascript – Setting “checked” for a checkbox with jQuery
- Javascript – How to check whether a checkbox is checked in jQuery
- Javascript – Scroll to the top of the page using JavaScript
- Javascript – Disable/enable an input with jQuery
- Javascript – How to refresh a page with jQuery
- Javascript – Scroll to an element with jQuery
Best Answer
See this answer for reference
Though both of the following methods should work, the preferred method is...
...for Jquery version 1.7 and later:
...or earlier
Note that: "This should give you a consistent stream of the scrollTop value when the user scrolls, but be careful as it's going to fire even while the user is just holding his finger on the screen."