From c3151c1f6c107c96eed796b9b8cd2806020deb19 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 8 Jul 2020 22:56:09 +0200 Subject: Fixed initial full scroll condition --- track.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'track.js') 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 } }) -- cgit v1.1