Created
April 28, 2016 10:38
-
-
Save aarongarciah/d7e7a0a6d461878e9354596d3c3eb39e to your computer and use it in GitHub Desktop.
Detect stop scrolling
This file contains 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
clearTimeout($.data(this, 'scrollTimer')); | |
$.data(this, 'scrollTimer', setTimeout(function() { | |
// Do something | |
console.log('Haven\'t scrolled in 250ms!'); | |
}, 250)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment