1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-27 12:05:06 +02:00

another implementation of pull 386 (show next when finished reading)

This commit is contained in:
Andrew Dolgov 2014-07-25 12:14:06 +04:00
parent 2032566579
commit b7c20a3759

View File

@ -1350,6 +1350,21 @@ function headlines_scroll_handler(e) {
catchup_timeout_id = window.setTimeout('catchupBatchedArticles()',
500);
}
} else if (_infscroll_disable) {
var child = $$("#headlines-frame div[id*=RROW]").last();
if (child && $("headlines-frame").scrollTop >
(child.offsetTop + child.offsetHeight/2)) {
console.log("we seem to be at an end");
if (getInitParam("on_catchup_show_next_feed") == "1") {
var is_cat = activeFeedIsCat();
var nuf = getNextUnreadFeed(getActiveFeedId(), is_cat);
if (nuf) viewfeed(nuf, '', is_cat);
}
}
}
}