mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
removed eventlisteners for scroll
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user