Fix "not scrolled to bottom" glow when zoomed

Allow 1px difference in isScrolledToBottom to allow for small
differences that can occur when the page zoom has been set to e.g. 110%
This commit is contained in:
Midgard 2022-06-17 14:03:27 +02:00
parent 2ec4e9384d
commit 68f87f4048
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -169,7 +169,7 @@ function isScrolledToBottom() {
const el = byId("channel_contents_wrapper");
const scrolledTo = el.clientHeight + el.scrollTop;
return scrolledTo >= el.scrollHeight;
return scrolledTo + 1 >= el.scrollHeight;
}
function checkScrolledToBottom() {
if (isScrolledToBottom()) {