Created
November 13, 2013 20:02
-
-
Save jookyboi/7455416 to your computer and use it in GitHub Desktop.
Check whether user has scrolled to the bottom of the container. From http://stackoverflow.com/questions/6271237/detecting-when-user-scrolls-to-bottom-of-div-with-jquery
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
jQuery( | |
function($) | |
{ | |
$('#flux').bind('scroll', function() | |
{ | |
if($(this).scrollTop() + | |
$(this).innerHeight() | |
>= $(this)[0].scrollHeight) | |
{ | |
alert('end reached'); | |
} | |
}) | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment