mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:25:59 +00:00
when auto selecting, only select articles actually near the buffer top
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user