jQuery Mobile scrollstopEvent
Example
Show an alert message when the page stops scrolling:
$(document).on("scrollstop",function(){
alert("Stopped scrolling!");
});
alert("Stopped scrolling!");
});
Try it Yourself »
Definition and Usage
scrollstop is an event triggered when the page stops scrolling.
Tip:This event is usually attached to the document.
Tip: scrollstartIt is the event triggered when the page starts scrolling.
Syntax
$("selector").on("scrollstop",function(event){...})
| Parameters | Description |
|---|---|
| function(event) | Required. Specifies the function to execute when the scrollstop event is triggered. The function has an optional event object, which can be any jQuery event property (e.g., event.target, event.type, etc.). For more information, please refer tojQuery Event Reference Manual 。 |

More Examples
Scroll Stop Counter
Count the number of times the scrollstop event is triggered.
Event Object
Use the event.target property to return the DOM element that triggered the scrollstop event.
Other Extensions
jQuery Mobile Events