mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-14 20:40:59 +02:00
when auto selecting, only select articles actually near the buffer top
This commit is contained in:
parent
a9cd27d6e6
commit
99d89d10b0
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user