From 9898a0704bc389fb580c1c65ace89321dc9f88ea Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sun, 12 Jul 2026 20:21:55 +0200 Subject: [PATCH] Revert "jhfg" This reverts commit 38f5c9d6fe3f030c7986fd51854e4b64af592f85. --- public/s/js/user_comments.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/public/s/js/user_comments.js b/public/s/js/user_comments.js index dc3fb9a..8758c13 100644 --- a/public/s/js/user_comments.js +++ b/public/s/js/user_comments.js @@ -71,19 +71,12 @@ if (!window.UserCommentSystem) { } bindEvents() { - let _rafPending = false; window.addEventListener('scroll', () => { if (this.loading || this.finished) return; - if (_rafPending) return; - _rafPending = true; - requestAnimationFrame(() => { - _rafPending = false; - if (this.loading || this.finished) return; - if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight - 500) { - this.loadMore(); - } - }); - }, { passive: true }); + if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight - 500) { + this.loadMore(); + } + }); // Listen for mode changes document.addEventListener('f0ck:modeChange', (e) => {