From c151607b91ca8f9e03d756955b8a80852712e15c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 1 Dec 2018 10:25:16 +0300 Subject: [PATCH] unpackVisibleHeadlines: increase lookahead distance --- js/viewfeed.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index d7db88d37..e94232c50 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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();