1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 21:51:29 +00:00

prevent cyclical scrolling in headlines if next offset requested by infscroll is zero

a bunch of other related fixes
This commit is contained in:
Andrew Dolgov
2015-08-11 12:00:08 +03:00
parent 95b493d68d
commit eaec06f950
2 changed files with 18 additions and 9 deletions

View File

@@ -72,12 +72,12 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req, can_w
if (!background) {
_viewfeed_last = get_timestamp();
if (getActiveFeedId() != feed || offset == 0) {
if (getActiveFeedId() != feed || !infscroll_req) {
setActiveArticleId(0);
_infscroll_disable = 0;
}
if (offset != 0 && !method) {
if (infscroll_req && !method) {
var timestamp = get_timestamp();
if (_infscroll_request_sent && _infscroll_request_sent + 30 > timestamp) {