Skip to content

Commit

Permalink
chore: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Aug 13, 2024
1 parent 68d12f0 commit 9373ea5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/example-infinite-scroll-esm.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ <h4>Data Count</h4>
{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;

Expand Down Expand Up @@ -181,15 +180,13 @@ <h4>Data Count</h4>
const viewportElm = args.grid.getViewportNode();
if (
['mousewheel', 'scroll'].includes(args.triggeredBy || '')
&& !scrollEndCalled
&& viewportElm.scrollTop > 0
&& Math.ceil(viewportElm.offsetHeight + args.scrollTop) >= args.scrollHeight
) {
console.log('onScroll end reached, add more items');
const startIdx = dataView.getItemCount();

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

Expand Down

0 comments on commit 9373ea5

Please sign in to comment.