From 985e11b75421d3322dcca7ae52bfdb607558dee0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 10 Dec 2019 16:45:59 +0300 Subject: [PATCH] re-enable updates of floating title on scroll, duh --- js/Headlines.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/js/Headlines.js b/js/Headlines.js index 6a3296205..05de3a0e9 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -272,31 +272,9 @@ define(["dojo/_base/declare"], function (declare) { try { Headlines.unpackVisible(); - /*if (App.isCombinedMode()) { + if (App.isCombinedMode()) Headlines.updateFloatingTitle(); - const ctr = $("headlines-frame"); - - // 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")) { - - const rows = $$("#headlines-frame > div[id*=RROW]"); - - for (let i = 0; i < rows.length; i++) { - const row = rows[i]; - - /*console.log(row.getAttribute("data-article-title"), row.offsetTop, row.offsetHeight, ctr.scrollTop, ctr.offsetHeight, - this.isChildVisible(row, ctr));*/ - - /* if (this.isChildVisible(row, ctr)) { - Article.setActive(row.getAttribute("data-article-id")); - break; - } - } - } - } */ - if (!Feeds.infscroll_disabled && !Feeds.infscroll_in_progress) { const hsp = $("headlines-spacer"); const container = $("headlines-frame");