diff options
author | Andrew Dolgov <[email protected]> | 2019-12-10 12:34:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-12-10 12:34:49 +0300 |
commit | 7d0bbe996236f2ae8ca2bf8e2fd09547345262f5 (patch) | |
tree | ab1133d49d674c2595e7842f4ec48cfa92827160 /js/Headlines.js | |
parent | 5b4eb8d7b9f5f00ace949d8f008ab61540ceef8b (diff) |
only track active article on scroll if auto catchup is enabled
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-x | js/Headlines.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Headlines.js b/js/Headlines.js index acc4b18e3..47129c109 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -267,7 +267,7 @@ define(["dojo/_base/declare"], function (declare) { // set first visible child in the buffer as active, but not if we're at the beginning (to prevent auto marking // first article as read all the time) - if (ctr.scrollTop > 0 && App.getInitParam("cdm_expanded") /*&& App.getInitParam("cdm_auto_catchup") == 1*/) { + if (ctr.scrollTop > 0 && App.getInitParam("cdm_expanded") && App.getInitParam("cdm_auto_catchup")) { const rows = $$("#headlines-frame > div[id*=RROW]"); |