From b3c67a4803d50fe115bf1b5185c98b64bc9a0864 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 9 Aug 2007 08:41:14 +0100 Subject: [PATCH] infinite scrolling: tweaks --- feedlist.js | 2 ++ viewfeed.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.39.5