Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit e82b52d

Browse files
authored
chore: remove unused variable
1 parent 048b2cb commit e82b52d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/examples/slickgrid/Example40.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ interface State extends BaseSlickGridState {
2626

2727
export default class Example40 extends React.Component<Props, State> {
2828
reactGrid!: SlickgridReactInstance;
29-
scrollEndCalled = false;
3029
shouldResetOnSort = false;
3130

3231
constructor(public readonly props: Props) {
@@ -101,15 +100,13 @@ export default class Example40 extends React.Component<Props, State> {
101100
const viewportElm = args.grid.getViewportNode();
102101
if (
103102
['mousewheel', 'scroll'].includes(args.triggeredBy || '')
104-
&& !this.scrollEndCalled
105103
&& viewportElm.scrollTop > 0
106104
&& Math.ceil(viewportElm.offsetHeight + args.scrollTop) >= args.scrollHeight
107105
) {
108106
console.log('onScroll end reached, add more items');
109107
const startIdx = this.reactGrid.dataView?.getItemCount() || 0;
110108
const newItems = this.loadData(startIdx, FETCH_SIZE);
111109
this.reactGrid.dataView?.addItems(newItems);
112-
this.scrollEndCalled = false;
113110
}
114111
}
115112

0 commit comments

Comments
 (0)