re-enable updates of floating title on scroll, duh
This commit is contained in:
parent
0e4f67bf2b
commit
985e11b754
|
@ -272,31 +272,9 @@ define(["dojo/_base/declare"], function (declare) {
|
||||||
try {
|
try {
|
||||||
Headlines.unpackVisible();
|
Headlines.unpackVisible();
|
||||||
|
|
||||||
/*if (App.isCombinedMode()) {
|
if (App.isCombinedMode())
|
||||||
Headlines.updateFloatingTitle();
|
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) {
|
if (!Feeds.infscroll_disabled && !Feeds.infscroll_in_progress) {
|
||||||
const hsp = $("headlines-spacer");
|
const hsp = $("headlines-spacer");
|
||||||
const container = $("headlines-frame");
|
const container = $("headlines-frame");
|
||||||
|
|
Loading…
Reference in New Issue