Merge pull request #236 from levito/patch-5

only do article update operations once when scrolling
This commit is contained in:
Andrew Dolgov 2013-06-24 22:18:11 -07:00
commit 9b89a846af
1 changed files with 2 additions and 1 deletions

View File

@ -1281,7 +1281,8 @@ function headlines_scroll_handler(e) {
var child = rows[i];
if ($("headlines-frame").scrollTop < child.offsetTop &&
child.offsetTop - $("headlines-frame").scrollTop < 100) {
child.offsetTop - $("headlines-frame").scrollTop < 100 &&
child.id.replace("RROW-", "") != _active_article_id) {
if (_active_article_id) {
var row = $("RROW-" + _active_article_id);