From: Andrew Dolgov Date: Thu, 9 Aug 2007 07:41:14 +0000 (+0100) Subject: infinite scrolling: tweaks X-Git-Tag: 1.2.14~124 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b3c67a4803d50fe115bf1b5185c98b64bc9a0864;p=tt-rss.git infinite scrolling: tweaks --- diff --git a/feedlist.js b/feedlist.js index 66b040f9..1e2770bd 100644 --- a/feedlist.js +++ b/feedlist.js @@ -57,6 +57,8 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) { // if (!offset) page_offset = 0; + var page_offset = 0; + if (offset > 0) { page_offset = offset; } else { diff --git a/viewfeed.js b/viewfeed.js index e464f219..09cdbafb 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -966,7 +966,7 @@ function headlines_scroll_handler() { var e = document.getElementById("headlinesInnerContainer"); - if (e.scrollTop + e.offsetHeight == e.scrollHeight) { + if (e.scrollTop + e.offsetHeight > e.scrollHeight - (e.scrollHeight/4)) { debug("more cowbell!"); viewNextFeedPage();