Nov 6 · 1 min read
Should do:
var end = someElement.scrollHeight - someElement.clientHeight;
instead of:
var end = someElement.scrollHeight
So that if the scroll will only try to scroll to the actual bottom of the view and not any further
Should do:
var end = someElement.scrollHeight - someElement.clientHeight;
instead of:
var end = someElement.scrollHeight
So that if the scroll will only try to scroll to the actual bottom of the view and not any further