From 2e35b3bd6bb54da3284b8a06b025b39972a756a0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 9 Sep 2013 14:38:28 +0400 Subject: [PATCH] prevent automatic selection of headlines row first child when scrolling in 3panel mode because it screws with keyboard navigation (closes #752) --- js/viewfeed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++) { -- 2.39.5