I have a div with position fixed
and top:96.9%
. I need to handle this div
when the page reaches its end (i.e when the page cannot be scrolled down further). How could I detect if the page scroll has reached its end? I did this:
if( ($(window).scrollTop() + $(window).height()) == $(document).height()) {
// No more scroll!
}
Is there a better way to detect this?