From 9373ea5d429520e32571ac412e49928f16515ba9 Mon Sep 17 00:00:00 2001 From: "Ghislain B." Date: Tue, 13 Aug 2024 11:08:26 -0400 Subject: [PATCH] chore: remove unused variable --- examples/example-infinite-scroll-esm.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/example-infinite-scroll-esm.html b/examples/example-infinite-scroll-esm.html index 11a9bd00..aad623e7 100644 --- a/examples/example-infinite-scroll-esm.html +++ b/examples/example-infinite-scroll-esm.html @@ -91,7 +91,6 @@

Data Count

{id: "effort-driven", name: "Effort Driven", width: 100, minWidth: 20, cssClass: "cell-effort-driven", field: "effortDriven", formatter: Formatters.Checkmark, sortable: true } ]; let shouldResetOnSort = false; - let scrollEndCalled = false; let sortcol = "title"; let sortdir = 1; @@ -181,7 +180,6 @@

Data Count

const viewportElm = args.grid.getViewportNode(); if ( ['mousewheel', 'scroll'].includes(args.triggeredBy || '') - && !scrollEndCalled && viewportElm.scrollTop > 0 && Math.ceil(viewportElm.offsetHeight + args.scrollTop) >= args.scrollHeight ) { @@ -189,7 +187,6 @@

Data Count

const startIdx = dataView.getItemCount(); dataView.addItems(loadData(startIdx, FETCH_SIZE)); - scrollEndCalled = false; } });