summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--track.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/track.js b/track.js
index 9447b78..3040f03 100644
--- a/track.js
+++ b/track.js
@@ -4,7 +4,7 @@
window.addEventListener("load", ()=>{
startedAt = new Date()
scrolledTo = window.scrollY
- if (window.innerHeight > document.scrollingElement.scrollHeight) {
+ if (window.innerHeight >= document.scrollingElement.scrollHeight) {
scrolledTo = document.scrollingElement.scrollHeight
}
})