summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-06-06 10:09:02 +0400
committerAndrew Dolgov <[email protected]>2013-06-06 10:09:02 +0400
commit19b906b94bc6c53af01484bb7d02c8199d210cf0 (patch)
treeecbe1c1959ba2c44187d8cbff13f4f4ccd8bba87 /js
parent0e70e4a42e16eb313c193606ff58091a83dec41d (diff)
block automarking headlines on scroll in unexpanded cdm because it doesn't work so well
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index eee6bf766..37bdeb684 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -1269,7 +1269,8 @@ function headlines_scroll_handler(e) {
unpackVisibleHeadlines();
// set topmost child in the buffer as active
- if (getInitParam("cdm_auto_catchup") == 1) {
+ if (getInitParam("cdm_auto_catchup") == 1 &&
+ (!isCdmMode() || getInitParam("cdm_expanded"))) {
var rows = $$("#headlines-frame > div[id*=RROW]");
for (var i = 0; i < rows.length; i++) {