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:
parent
2ec4e9384d
commit
68f87f4048
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue