From 95be6e0c89e4fcbd04cb59e599caef2685dd5ded Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Jul 2013 12:16:54 +0400 Subject: [PATCH] fix second row being selected on viewfeed (closes #748) --- js/viewfeed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index dd1c6432..b62058ca 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1283,7 +1283,7 @@ 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 < 100 && child.id.replace("RROW-", "") != _active_article_id) { -- 2.39.5