Closed ylw5 closed 2 years ago
Checked in both Chrome and Edge, at bottom of page, window.scrollY + window.innerHeight > document.body.offsetHeight, last one didn't be highlighted
window.scrollY + window.innerHeight
document.body.offsetHeight
Good catch.
After a double-check, the left side expression could even be slightly smaller than the right side.
So it's better to have a more compatible solution.
Checked in both Chrome and Edge, at bottom of page,
window.scrollY + window.innerHeight
>document.body.offsetHeight
, last one didn't be highlighted