jQuery Mobile Scrolling Events

jQuery Mobile provides two scrolling events: one when scrolling begins and another when scrolling ends.

jQuery Mobile Scrollstart

The scrollstart event is triggered when the user starts scrolling the page:

Παράδειγμα

$(document).on("scrollstart",function(){
  alert("Scrolling started!");
});

Προσπαθήστε το شخصικά

Note:iOS devices freeze DOM operations when a scrolling event occurs, which means that nothing can be changed when the user scrolls. However, the jQuery team is working hard to solve this problem.

jQuery Mobile Scrollstop

Το γεγονός scrollstop εκκινείται όταν ο χρήστης σταματά το σκορλήσιμο της σελίδας:

Παράδειγμα

$(document).on("scrollstop",function(){
  alert("Τέλος Σκρολλινγκ!");
});

Προσπαθήστε το شخصικά