File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 66 "@nativescript-community/ui-collectionview" : " *" ,
77 "@nativescript-community/ui-collectionview-alignedflowlayout" : " *" ,
88 "@nativescript-community/ui-collectionview-swipemenu" : " *" ,
9- "@nativescript-community/ui-collectionview-waterfall" : " *"
9+ "@nativescript-community/ui-collectionview-waterfall" : " *" ,
10+ "@nativescript-community/ui-pulltorefresh" : " *"
1011 }
1112}
Original file line number Diff line number Diff line change @@ -679,7 +679,10 @@ export class CollectionView extends CollectionViewBase {
679679 if ( ! view ) {
680680 return - 1 ;
681681 }
682- return view . indexPathsForVisibleItems ?. objectAtIndex ( 0 ) ?. row ?? - 1 ;
682+ const indexes = Array . from < NSIndexPath > ( view . indexPathsForVisibleItems )
683+ . map ( ( e ) => e . row )
684+ . sort ( ) ;
685+ return indexes [ 0 ] ?? - 1 ;
683686 }
684687 @profile
685688 public refresh ( ) {
You can’t perform that action at this time.
0 commit comments