From fdc8b836b3a4e463717172c76f25f330b15881e9 Mon Sep 17 00:00:00 2001 From: schrumpel <Ă‚git@f0ck.it> Date: Mon, 19 Dec 2022 01:42:54 +0100 Subject: [PATCH] blah? --- public/s/js/f0ck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/s/js/f0ck.js b/public/s/js/f0ck.js index e5b6b96..35ed3f2 100644 --- a/public/s/js/f0ck.js +++ b/public/s/js/f0ck.js @@ -68,7 +68,7 @@ const scroll_treshold = 1; if([...document.querySelectorAll("div.posts")].length === 1) { document.addEventListener("wheel", e => { - if(Math.ceil(window.innerHeight + window.scrollY) >= document.body.offsetHeight && e.deltaY > 0) { // down + if(Math.ceil(window.innerHeight + window.scrollY) >= document.querySelector('#main').offsetHeight && e.deltaY > 0) { // down if(elem = document.querySelector(".pagination > .next:not(.disabled)")) { if(tts < scroll_treshold) { document.querySelector("div#footbar").style.boxShadow = "inset 0px 4px 0px var(--footbar-color)"; -- 2.45.2