unpackVisibleHeadlines: increase lookahead distance

This commit is contained in:
Andrew Dolgov 2018-12-01 10:25:16 +03:00
parent b87b4287b7
commit c151607b91
1 changed files with 1 additions and 2 deletions

View File

@ -1094,7 +1094,7 @@ function unpackVisibleHeadlines() {
if (!isCombinedMode() || !getInitParam("cdm_expanded")) return;
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++) {
const row = rows[i];
@ -1121,7 +1121,6 @@ function headlinesScrollHandler(event) {
try {
unpackVisibleHeadlines();
if (isCombinedMode()) {
updateFloatingTitle();