I need to know if a certain div
has been rolled to the end using jQuery. I'm having problems because the height of div
is not constant. The goal is to automatically roll div
down unless it has already been rolled by the user to the end.
Auto-scrolling code:
$(".roller").animate({"scrollTop": $(".roller")[0].scrollHeight}, 500);