]> git.wh0rd.org Git - tt-rss.git/commitdiff
prevent automatic selection of headlines row first child when scrolling in 3panel...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 9 Sep 2013 10:38:28 +0000 (14:38 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 9 Sep 2013 10:38:28 +0000 (14:38 +0400)
js/viewfeed.js

index b62058ca83b540e1e15ca3692d3df34bed284ebe..cb9a3c646ef4fdb7b74421743aaf025c41239f0a 100644 (file)
@@ -1275,9 +1275,9 @@ function headlines_scroll_handler(e) {
                unpackVisibleHeadlines();
 
                // set topmost child in the buffer as active
-               if (getInitParam("cdm_auto_catchup") == 1 &&
+               if (isCdmMode() && getInitParam("cdm_auto_catchup") == 1 &&
                                getSelectedArticleIds2().length <= 1 &&
-                               (!isCdmMode() || getInitParam("cdm_expanded"))) {
+                               getInitParam("cdm_expanded")) {
                        var rows = $$("#headlines-frame > div[id*=RROW]");
 
                        for (var i = 0; i < rows.length; i++) {