File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ export class Pager extends PagerBase {
424
424
}
425
425
}
426
426
427
- public scrollToIndexAnimated ( index : number , animate : boolean ) {
427
+ public scrollToIndexAnimated ( index : number , animate : boolean , requestTransform = false ) {
428
428
const nativeView = this . nativeViewProtected ;
429
429
if ( nativeView ) {
430
430
nativeView . setCurrentItem ( this . pagerAdapter . getIndex ( index ) , animate ) ;
@@ -435,6 +435,11 @@ export class Pager extends PagerBase {
435
435
this . indicator . setSelection ( index , false ) ;
436
436
}
437
437
}
438
+ if ( requestTransform ) {
439
+ setTimeout ( ( ) => {
440
+ nativeView . requestTransform ( ) ;
441
+ } , 0 ) ;
442
+ }
438
443
}
439
444
}
440
445
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export declare class Pager extends PagerBase {
12
12
readonly android : any ;
13
13
readonly ios : any ;
14
14
15
- scrollToIndexAnimated ( index : number , animate : boolean ) : void ;
15
+ scrollToIndexAnimated ( index : number , animate : boolean , requestTransform ?: boolean ) : void ;
16
16
17
17
eachChildView ( callback : ( child : View ) => boolean ) : void ;
18
18
You can’t perform that action at this time.
0 commit comments