From: Andrew Dolgov Date: Thu, 16 May 2013 06:50:36 +0000 (+0400) Subject: when auto selecting, only select articles actually near the buffer top X-Git-Tag: 1.8~99 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=99d89d10b0c6fed9b921c22e9a6fb39de859e85d;p=tt-rss.git when auto selecting, only select articles actually near the buffer top --- diff --git a/js/viewfeed.js b/js/viewfeed.js index de3f660b..50bec196 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1247,7 +1247,9 @@ function headlines_scroll_handler(e) { for (var i = 0; i < rows.length; i++) { var child = rows[i]; - if ($("headlines-frame").scrollTop < child.offsetTop) { + if ($("headlines-frame").scrollTop < child.offsetTop && + child.offsetTop - $("headlines-frame").scrollTop < 50) { + if (_active_article_id) { var row = $("RROW-" + _active_article_id); if (row) row.removeClassName("active");