mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
removed eventlisteners for scroll
This commit is contained in:
@@ -201,7 +201,9 @@
|
|||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
// Infinite scrolling of posts
|
// 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(),
|
var windowHeight = document.body.offsetHeight - $(window).height(),
|
||||||
half = windowHeight / 2;
|
half = windowHeight / 2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user