1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:15:55 +00:00

unpackVisibleHeadlines: go ahead of the buffer position a bit

This commit is contained in:
Andrew Dolgov
2018-11-30 14:25:12 +03:00
parent 0c06bb5fe1
commit 58dee80ae5

View File

@@ -1008,11 +1008,12 @@ function unpackVisibleHeadlines() {
if (!isCdmMode()) return;
const rows = $$("#headlines-frame div[id*=RROW][data-content]");
const threshold = $("headlines-frame").scrollTop + $("headlines-frame").offsetHeight + 100;
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
if (row.offsetTop <= $("headlines-frame").scrollTop + $("headlines-frame").offsetHeight) {
if (row.offsetTop <= threshold) {
console.log("unpacking: " + row.id);
const content = row.getAttribute("data-content");