File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/infinite-scroll/src/js Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 333
333
grid . infiniteScroll . direction = grid . scrollDirection ;
334
334
delete grid . infiniteScroll . prevScrollTop ;
335
335
336
- if ( grid . scrollDirection === uiGridConstants . scrollDirection . UP && grid . infiniteScroll . scrollUp ) {
336
+ if ( grid . scrollDirection === uiGridConstants . scrollDirection . UP && grid . infiniteScroll . scrollUp ) {
337
337
grid . infiniteScroll . dataLoading = true ;
338
338
grid . api . infiniteScroll . raise . needLoadMoreDataTop ( ) ;
339
339
}
340
- else if ( grid . scrollDirection === uiGridConstants . scrollDirection . DOWN && grid . infiniteScroll . scrollDown ) {
340
+ else if ( grid . scrollDirection === uiGridConstants . scrollDirection . DOWN && grid . infiniteScroll . scrollDown ) {
341
+ if ( grid . cellNav && grid . cellNav . lastRowCol && grid . cellNav . lastRowCol . row . index === grid . infiniteScroll . previousVisibleRows - 1 ) {
342
+ return ;
343
+ }
341
344
grid . infiniteScroll . dataLoading = true ;
342
345
grid . api . infiniteScroll . raise . needLoadMoreData ( ) ;
343
346
}
You canāt perform that action at this time.
0 commit comments