Skip to content

Commit

Permalink
fix: debounce both branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vcheckzen committed Oct 31, 2024
1 parent 3d18fd6 commit a37987d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front-end/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@

entries.forEach((entry) => {
if (entry.isIntersecting) {
stat.lastRenderedTs = Date.now();
if (pageRef.skipToken) {
loadNextPage(pageRef);
} else {
Expand All @@ -963,7 +964,6 @@

function renderItems() {
const startIndex = stat.renderedItems;
stat.lastRenderedTs = Date.now();
stat.renderedItems += stat.pageSize;
stat.renderedItems = Math.min(
stat.renderedItems,
Expand Down

0 comments on commit a37987d

Please sign in to comment.