]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix second row being selected on viewfeed (closes #748)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Jul 2013 08:16:54 +0000 (12:16 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Jul 2013 08:16:54 +0000 (12:16 +0400)
js/viewfeed.js

index dd1c643268e1d934b4244ffbbb3977653c4b37c0..b62058ca83b540e1e15ca3692d3df34bed284ebe 100644 (file)
@@ -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) {