Skip to content

Commit a27cf69

Browse files
authored
fix[ios]: change selectedIndex with transformer break design
1 parent e667508 commit a27cf69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui-pager/index.ios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ export class Pager extends PagerBase {
380380
}
381381
// dispatch_async(main_queue, () => {
382382
if (this.mDataSource.collectionViewNumberOfItemsInSection(this.nativeViewProtected, 0) > maxMinIndex) {
383+
this.nativeViewProtected.setContentOffsetAnimated(CGPointMake(1, 0), !!animate)
383384
this.nativeViewProtected.scrollToItemAtIndexPathAtScrollPositionAnimated(
384385
NSIndexPath.indexPathForItemInSection(maxMinIndex, 0),
385386
this.orientation === 'vertical' ? UICollectionViewScrollPosition.CenteredVertically : UICollectionViewScrollPosition.CenteredHorizontally,

0 commit comments

Comments
 (0)