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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user