Latest web development tutorials

jQuery Mobile scrollstop event

jQuery Mobile Events jQuery Mobile Events

Examples

Page pop-up message when the scrolling stops:

$(document).on("scrollstop",function(){
alert("停止滚动!");
});

try it"

Definition and Usage

scrollstop event is triggered when the page scrolling stops.

Note: This event is often attached to the document.

Tip: scrollstart event triggered when the page starts scrolling.


grammar

$ ( "Selector") .on ( "scrollstop", function (event) {...})

parameter description
function (event) have to. Function is executed scrollstop specified event triggers.

The function has an optional event object, the event object can be any jQuery event properties (such as event.target, event.type, etc.). For more information, please refer jQuery Event Manual .


Examples

More examples

Scrolling stops counting
Number scrollstop event trigger calculations.

Event objects
Use event.target property to return the DOM element scrollstop event trigger. <


jQuery Mobile Events jQuery Mobile Events