diff options
author | Andrew Dolgov <[email protected]> | 2013-06-24 22:18:11 -0700 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-06-24 22:18:11 -0700 |
commit | 9b89a846afac94c4b2bd6687ddf3c08d974ed283 (patch) | |
tree | b4e5f382efed6b6d21a5918c9ea0b7df9dc42d57 | |
parent | d1343b844d96e808620a230ee8f39764acedb581 (diff) | |
parent | d1754390cc1c45eb469daf0221e235ca1a02d555 (diff) |
Merge pull request #236 from levito/patch-5
only do article update operations once when scrolling
-rw-r--r-- | js/viewfeed.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 9c48fbcdb..1c5811fe7 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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); |