mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 17:35:57 +00:00
infinite scrolling: tweaks
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user