File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -781,12 +781,12 @@ export class CollectionView extends CollectionViewBase {
781781 }
782782 const layoutManager = this . layoutManager as androidx . recyclerview . widget . LinearLayoutManager ;
783783 if ( layoutManager [ 'findFirstVisibleItemPosition' ] ) {
784- const first = layoutManager . findFirstVisibleItemPosition ( ) ;
785- const last = layoutManager . findLastVisibleItemPosition ( ) ;
786- return index >= first && index <= last ;
784+ const first = layoutManager . findFirstVisibleItemPosition ( ) ;
785+ const last = layoutManager . findLastVisibleItemPosition ( ) ;
786+ return index >= first && index <= last ;
787787 }
788788 return false ;
789- }
789+ }
790790
791791 @profile
792792 public refresh ( ) {
@@ -821,6 +821,7 @@ export class CollectionView extends CollectionViewBase {
821821 this . notify ( args ) ;
822822 }
823823
824+ //@ts -ignore
824825 get scrollOffset ( ) {
825826 const view = this . nativeViewProtected ;
826827 if ( ! view ) {
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ export * from './collectionview-common';
66export type Orientation = 'horizontal' | 'vertical' ;
77
88export class CollectionView extends CollectionViewBase {
9-
109 public scrollOffset : number ;
1110 public refresh ( ) ;
1211 public refreshVisibleItems ( ) ;
@@ -41,5 +40,5 @@ export enum ListViewViewTypes {
4140 /**
4241 * Identifies a view created using the {@link itemTemplate} value.
4342 */
44- ItemView ,
43+ ItemView
4544}
Original file line number Diff line number Diff line change @@ -514,10 +514,10 @@ export class CollectionView extends CollectionViewBase {
514514 if ( ! view ) {
515515 return false ;
516516 }
517- const indexes : NSIndexPath [ ] = Array . from ( view . indexPathsForVisibleItems ) ;
517+ const indexes : NSIndexPath [ ] = Array . from ( view . indexPathsForVisibleItems ) ;
518518
519- return indexes . some ( ( visIndex ) => visIndex . row === itemIndex ) ;
520- }
519+ return indexes . some ( ( visIndex ) => visIndex . row === itemIndex ) ;
520+ }
521521
522522 @profile
523523 public refresh ( ) {
@@ -552,6 +552,7 @@ export class CollectionView extends CollectionViewBase {
552552 } ;
553553 this . notify ( args ) ;
554554 }
555+ //@ts -ignore
555556 get scrollOffset ( ) {
556557 const view = this . nativeViewProtected ;
557558 return ( this . isHorizontal ( ) ? view ?. contentOffset . x : view ?. contentOffset . y ) || 0 ;
You can’t perform that action at this time.
0 commit comments