closed #186 - infinite scroller not working in firefox

v1.18.x
Julian Lam 12 years ago
parent eded61d66e
commit 2e4e1df3d9

@ -204,9 +204,9 @@
}
$(window).off('scroll').on('scroll', function() {
var bottom = (document.body.offsetHeight - $(window).height()) * 0.9;
var bottom = (document.body.offsetHeight - $(window).height()) * 0.9;
if (document.body.scrollTop > bottom && !app.infiniteLoaderActive && $('#post-container').children().length) {
if ((document.documentElement.scrollTop || document.body.scrollTop) > bottom && !app.infiniteLoaderActive && $('#post-container').children().length) {
app.loadMorePosts(tid);
}
});

Loading…
Cancel
Save