Created
November 12, 2013 13:32
-
-
Save lutzissler/7430870 to your computer and use it in GitHub Desktop.
Scroll stop event for jQuery. Remember that scroll events don’t bubble, so this will only catch full page scrolls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($) { | |
| var timer; | |
| $(window).bind("scroll", function (e) { | |
| clearTimeout(timer); | |
| timer = setTimeout(function () { | |
| $(window).trigger("scrollstop"); | |
| }, 150); | |
| }); | |
| })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment