summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-09-09 14:38:28 +0400
committerAndrew Dolgov <[email protected]>2013-09-09 14:38:28 +0400
commit2e35b3bd6bb54da3284b8a06b025b39972a756a0 (patch)
tree0c97f3b3e7bf8879d90b4c4311032ced08cf75c2 /js
parentf5967cf825bbcc26ac3c8ac1ba5ce86ef3be9855 (diff)
prevent automatic selection of headlines row first child when scrolling in 3panel mode because it screws with keyboard navigation (closes #752)
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index b62058ca8..cb9a3c646 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++) {