jQuery Mobile Scrolling Events
jQuery Mobile provides two scrolling events: triggered when scrolling starts and when scrolling ends.
jQuery Mobile Scroll Start (Scrollstart)
The scrollstart event is triggered when a user starts scrolling the page:
Example
$(document).on("scrollstart",function(){
alert("Start scrolling!");
});
Try it »
![]() |
**Note:** iOS devices lock DOM operations during scrolling, which means it is impossible to change anything while the user is scrolling. However, the jQuery team is working on a solution for this. |
|---|
jQuery Mobile Scroll Stop (Scrollstop)
The scrollstop event is triggered when a user stops scrolling the page:
Example
$(document).on("scrollstop",function(){
alert("Stop scrolling!");
});
Try it »
