summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feedlist.js2
-rw-r--r--viewfeed.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/feedlist.js b/feedlist.js
index 66b040f9f..1e2770bd4 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 e464f2198..09cdbafbc 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();