only track active article on scroll if auto catchup is enabled

This commit is contained in:
Andrew Dolgov 2019-12-10 12:34:49 +03:00
parent 5b4eb8d7b9
commit 7d0bbe9962
1 changed files with 1 additions and 1 deletions

View File

@ -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]");