File tree 1 file changed +0
-3
lines changed
packages/demo/src/examples/slickgrid
1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export class Example40 {
20
20
dataset : any [ ] = [ ] ;
21
21
gridOptions ! : GridOption ;
22
22
metrics ! : Partial < Metrics > ;
23
- scrollEndCalled = false ;
24
23
shouldResetOnSort = false ;
25
24
26
25
constructor ( ) {
@@ -65,15 +64,13 @@ export class Example40 {
65
64
const viewportElm = args . grid . getViewportNode ( ) ;
66
65
if (
67
66
[ 'mousewheel' , 'scroll' ] . includes ( args . triggeredBy || '' )
68
- && ! this . scrollEndCalled
69
67
&& viewportElm . scrollTop > 0
70
68
&& Math . ceil ( viewportElm . offsetHeight + args . scrollTop ) >= args . scrollHeight
71
69
) {
72
70
console . log ( 'onScroll end reached, add more items' ) ;
73
71
const startIdx = this . aureliaGrid . dataView ?. getItemCount ( ) || 0 ;
74
72
const newItems = this . loadData ( startIdx , FETCH_SIZE ) ;
75
73
this . aureliaGrid . dataView ?. addItems ( newItems ) ;
76
- this . scrollEndCalled = false ;
77
74
}
78
75
}
79
76
You can’t perform that action at this time.
0 commit comments