reevaluate document height on scroll

This commit is contained in:
Robert Joonas 2024-11-21 12:14:48 +01:00
parent d18c7e343a
commit 6bc3a297b2

View File

@ -83,6 +83,7 @@
})
document.addEventListener('scroll', function() {
currentDocumentHeight = getDocumentHeight()
var currentScrollDepthPx = getCurrentScrollDepthPx()
if (currentScrollDepthPx > maxScrollDepthPx) {