diff options
author | Aki <please@ignore.pl> | 2020-07-08 22:56:09 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2020-07-08 22:56:09 +0200 |
commit | c3151c1f6c107c96eed796b9b8cd2806020deb19 (patch) | |
tree | 04f92aefb6993b1038202f140e703d38e26342c4 | |
parent | 81311c9a72058fedf0b9add696db170349478ebe (diff) | |
download | rudone-c3151c1f6c107c96eed796b9b8cd2806020deb19.zip rudone-c3151c1f6c107c96eed796b9b8cd2806020deb19.tar.gz rudone-c3151c1f6c107c96eed796b9b8cd2806020deb19.tar.bz2 |
Fixed initial full scroll condition
-rw-r--r-- | track.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } }) |