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 333333 grid . infiniteScroll . direction = grid . scrollDirection ;
334334 delete grid . infiniteScroll . prevScrollTop ;
335335
336- if ( grid . scrollDirection === uiGridConstants . scrollDirection . UP && grid . infiniteScroll . scrollUp ) {
336+ if ( grid . scrollDirection === uiGridConstants . scrollDirection . UP && grid . infiniteScroll . scrollUp ) {
337337 grid . infiniteScroll . dataLoading = true ;
338338 grid . api . infiniteScroll . raise . needLoadMoreDataTop ( ) ;
339339 }
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+ }
341344 grid . infiniteScroll . dataLoading = true ;
342345 grid . api . infiniteScroll . raise . needLoadMoreData ( ) ;
343346 }
You can’t perform that action at this time.
0 commit comments