X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

jQuery Mobile Scroll Events


jQuery Mobile provides two scroll events: when scrolling starts and when scrolling stops.


jQuery Mobile Scrollstart

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

Example

$(document).on("scrollstart",function(){
  alert("Started scrolling!");
});

Try it yourself »

Note Note: iOS devices freeze DOM manipulation during scrolls, which means that it is not possible to change something when the user scrolls. However, the jQuery team are working on a solution for this.


jQuery Mobile Scrollstop

The scrollstop event is triggered when the user stops to scroll the page:

Example

$(document).on("scrollstop",function(){
  alert("Stopped scrolling!");
});

Try it yourself »



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook