summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-07-08 22:57:43 +0200
committerAki <please@ignore.pl>2020-07-08 22:57:43 +0200
commit9bce1d278b367feb00b1be4c46881489dab4c36a (patch)
tree8fefba45bef86657f3e160864e7e25b2eaba2b57
parentc3151c1f6c107c96eed796b9b8cd2806020deb19 (diff)
downloadrudone-9bce1d278b367feb00b1be4c46881489dab4c36a.zip
rudone-9bce1d278b367feb00b1be4c46881489dab4c36a.tar.gz
rudone-9bce1d278b367feb00b1be4c46881489dab4c36a.tar.bz2
Removed obsolete argument in scroll handler
-rw-r--r--track.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/track.js b/track.js
index 3040f03..5b0e544 100644
--- a/track.js
+++ b/track.js
@@ -8,7 +8,7 @@
scrolledTo = document.scrollingElement.scrollHeight
}
})
- window.addEventListener("scroll", (event)=>{
+ window.addEventListener("scroll", ()=>{
scrolledTo = Math.max(scrolledTo, window.scrollY + window.innerHeight)
}, false)
window.addEventListener("beforeunload", ()=>{