Merge pull request #236 from levito/patch-5
only do article update operations once when scrolling
This commit is contained in:
commit
9b89a846af
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue