From 2e4e1df3d939dd57f31aa807b570c051d5ff6c48 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 20 Aug 2013 22:36:46 -0400 Subject: [PATCH] closed #186 - infinite scroller not working in firefox --- public/src/forum/topic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 85e6a24734..71a51bfc91 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -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); } });