-2

I would like to get the value when I stop scrolling a price filter. Is there any event function to do that? I've tried 'mouseout', 'mouseleave', etc...

enter image description here

dddddd
  • 67
  • 7

1 Answers1

0

You need to use a timeout to detect that the user has stopped scrolling, you can refer to this JQuery code:

var delay = 1000;
var timeout = null;
$(window).bind('scroll',function(){
    clearTimeout(timeout);
    timeout = setTimeout(function(){
        alert('scrolling stopped');
    },delay);
});​​​​​​​​​​

Or to that link if you call your event handler directly from HTML (add the timer in the same way) :

event_onscroll

Last but not least you can refer to this link:

how-to-detect-end-of-scrolling

Allan
  • 12,117
  • 3
  • 27
  • 51