Skip to content

Node.js based forum software built for the modern web

removed eventlisteners for scroll

Baris Usakli34ce17e5223b
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index 7d751f6a32..d393f5e55f 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -201,7 +201,9 @@
}, false);
// Infinite scrolling of posts
- window.addEventListener('scroll', function() {
+ $(window).off('scroll');
+ $(window).on('scroll', function() {
+ console.log('called scroll for ' + tid);
var windowHeight = document.body.offsetHeight - $(window).height(),
half = windowHeight / 2;