Created
May 10, 2012 15:43
-
-
Save pazguille/2654024 to your computer and use it in GitHub Desktop.
Determining when scroll to bottom of a page
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
$(window).on("scroll", function () { | |
if(window.scrollY + window.innerHeight == document.body.scrollHeight) { | |
console.log("bottom!"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment