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...
Asked
Active
Viewed 33 times
-2
-
Isn't it a "change" event or something? You don't need to rely on the mouse event. – Carcigenicate Nov 06 '17 at 02:01
-
@Carcigenicate already but it didn't work – dddddd Nov 06 '17 at 02:03
-
1Show an [mcve] of what you've tried to clarify what you're asking. – Carcigenicate Nov 06 '17 at 02:04
-
Is that an ``? You don't say. If so `onchange` should work. – StackSlave Nov 06 '17 at 02:04
-
@PHPglue it is – dddddd Nov 06 '17 at 02:06
-
2That's not a valid type. – jhpratt Nov 06 '17 at 02:08
-
Questions about input types that don't exist are probably off topic. – traktor Nov 06 '17 at 03:07
1 Answers
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) :
Last but not least you can refer to this link:

Allan
- 12,117
- 3
- 27
- 51