From 7d0bbe996236f2ae8ca2bf8e2fd09547345262f5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 10 Dec 2019 12:34:49 +0300 Subject: [PATCH] only track active article on scroll if auto catchup is enabled --- js/Headlines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]");