Latest web development tutorials

jQuery Mobile scroll event

jQuery Mobile provides two scrolling events: when scrolling trigger and trigger the beginning of the end of rolling.


jQuery Mobile scroll start (Scrollstart)

scrollstart event is triggered when the user starts to scroll the page:

Examples

$(document).on("scrollstart",function(){
alert("开始滚动!");
});

try it"

lamp Note: iOS device is locked DOM operations when scrolling, it is impossible to change anything This means that when a user scrolling. However, jQuery team is working to find a solution for this.


jQuery Mobile scrolling end (Scrollstop)

scrollstop event is triggered when the user stops scrolling page:

Examples

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

try it"