infinite scrolling: tweaks

This commit is contained in:
Andrew Dolgov 2007-08-09 08:41:14 +01:00
parent ac54143200
commit b3c67a4803
2 changed files with 3 additions and 1 deletions

View File

@ -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 {

View File

@ -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();