From a37987d51b995a0fd6b7a54b49b43e9867971186 Mon Sep 17 00:00:00 2001 From: vcheckzen <18008498+vcheckzen@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:02:21 +0800 Subject: [PATCH] fix: debounce both branch --- front-end/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/index.html b/front-end/index.html index 8d2b3bb0..226707a3 100644 --- a/front-end/index.html +++ b/front-end/index.html @@ -944,6 +944,7 @@ entries.forEach((entry) => { if (entry.isIntersecting) { + stat.lastRenderedTs = Date.now(); if (pageRef.skipToken) { loadNextPage(pageRef); } else { @@ -963,7 +964,6 @@ function renderItems() { const startIndex = stat.renderedItems; - stat.lastRenderedTs = Date.now(); stat.renderedItems += stat.pageSize; stat.renderedItems = Math.min( stat.renderedItems,