when auto selecting, only select articles actually near the buffer top

master
Andrew Dolgov 11 years ago
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…
Cancel
Save