From d6561a66b82617b0cf7b5eaa901577f0aab09e9b Mon Sep 17 00:00:00 2001 From: Flummi Date: Wed, 18 May 2022 12:12:25 +0000 Subject: [PATCH] bugfix --- 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 f711414..ec16243 100644 --- a/public/s/js/f0ck.js +++ b/public/s/js/f0ck.js @@ -66,7 +66,7 @@ // let tts = 0; const scroll_treshold = 1; - if(document.querySelector("div.posts")) { + 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(elem = document.querySelector(".pagination > .next:not(.disabled)")) {