Revert "jhfg"

This reverts commit 38f5c9d6fe.
This commit is contained in:
2026-07-12 21:15:22 +02:00
parent d75e5fb218
commit 36d9dca211

View File

@@ -71,19 +71,12 @@ if (!window.UserCommentSystem) {
} }
bindEvents() { bindEvents() {
let _rafPending = false;
window.addEventListener('scroll', () => { window.addEventListener('scroll', () => {
if (this.loading || this.finished) return;
if (_rafPending) return;
_rafPending = true;
requestAnimationFrame(() => {
_rafPending = false;
if (this.loading || this.finished) return; if (this.loading || this.finished) return;
if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight - 500) { if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight - 500) {
this.loadMore(); this.loadMore();
} }
}); });
}, { passive: true });
// Listen for mode changes // Listen for mode changes
document.addEventListener('f0ck:modeChange', (e) => { document.addEventListener('f0ck:modeChange', (e) => {