From: Andrew Dolgov Date: Wed, 17 Jul 2013 08:16:54 +0000 (+0400) Subject: fix second row being selected on viewfeed (closes #748) X-Git-Tag: 1.9~7 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=95be6e0c89e4fcbd04cb59e599caef2685dd5ded;p=tt-rss.git fix second row being selected on viewfeed (closes #748) --- 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) {