summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-07-08 22:56:09 +0200
committerAki <please@ignore.pl>2020-07-08 22:56:09 +0200
commitc3151c1f6c107c96eed796b9b8cd2806020deb19 (patch)
tree04f92aefb6993b1038202f140e703d38e26342c4
parent81311c9a72058fedf0b9add696db170349478ebe (diff)
downloadstats-c3151c1f6c107c96eed796b9b8cd2806020deb19.zip
stats-c3151c1f6c107c96eed796b9b8cd2806020deb19.tar.gz
stats-c3151c1f6c107c96eed796b9b8cd2806020deb19.tar.bz2
Fixed initial full scroll condition
-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
}
})