infinite scrolling: tweaks
This commit is contained in:
parent
ac54143200
commit
b3c67a4803
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue