unpackVisibleHeadlines: increase lookahead distance
This commit is contained in:
parent
b87b4287b7
commit
c151607b91
|
@ -1094,7 +1094,7 @@ function unpackVisibleHeadlines() {
|
||||||
if (!isCombinedMode() || !getInitParam("cdm_expanded")) return;
|
if (!isCombinedMode() || !getInitParam("cdm_expanded")) return;
|
||||||
|
|
||||||
const rows = $$("#headlines-frame div[id*=RROW][data-content]");
|
const rows = $$("#headlines-frame div[id*=RROW][data-content]");
|
||||||
const threshold = $("headlines-frame").scrollTop + $("headlines-frame").offsetHeight + 300;
|
const threshold = $("headlines-frame").scrollTop + $("headlines-frame").offsetHeight + 600;
|
||||||
|
|
||||||
for (let i = 0; i < rows.length; i++) {
|
for (let i = 0; i < rows.length; i++) {
|
||||||
const row = rows[i];
|
const row = rows[i];
|
||||||
|
@ -1121,7 +1121,6 @@ function headlinesScrollHandler(event) {
|
||||||
try {
|
try {
|
||||||
unpackVisibleHeadlines();
|
unpackVisibleHeadlines();
|
||||||
|
|
||||||
|
|
||||||
if (isCombinedMode()) {
|
if (isCombinedMode()) {
|
||||||
updateFloatingTitle();
|
updateFloatingTitle();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue