From: Andrew Dolgov Date: Mon, 9 Sep 2013 10:38:28 +0000 (+0400) Subject: prevent automatic selection of headlines row first child when scrolling in 3panel... X-Git-Tag: 1.10~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2e35b3bd6bb54da3284b8a06b025b39972a756a0;p=tt-rss.git prevent automatic selection of headlines row first child when scrolling in 3panel mode because it screws with keyboard navigation (closes #752) --- diff --git a/js/viewfeed.js b/js/viewfeed.js index b62058ca..cb9a3c64 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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++) {