summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-10 16:45:59 +0300
committerAndrew Dolgov <[email protected]>2019-12-10 16:45:59 +0300
commit985e11b75421d3322dcca7ae52bfdb607558dee0 (patch)
tree512f47e415439bf684b30abc3d33027c93131f92 /js/Headlines.js
parent0e4f67bf2b4cd2b387aa6b5da56f57b9c59ceadd (diff)
re-enable updates of floating title on scroll, duh
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js24
1 files changed, 1 insertions, 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");