mirror of
https://github.com/plausible/analytics.git
synced 2024-11-22 02:27:57 +03:00
reevaluate document height on scroll
This commit is contained in:
parent
d18c7e343a
commit
6bc3a297b2
@ -83,6 +83,7 @@
|
||||
})
|
||||
|
||||
document.addEventListener('scroll', function() {
|
||||
currentDocumentHeight = getDocumentHeight()
|
||||
var currentScrollDepthPx = getCurrentScrollDepthPx()
|
||||
|
||||
if (currentScrollDepthPx > maxScrollDepthPx) {
|
||||
|
Loading…
Reference in New Issue
Block a user