nativescript-community / ui-pager

Pager / Carousel component that allows the user to swipe left and right through pages of data.
https://nativescript-community.github.io/ui-pager/
Apache License 2.0
18 stars 10 forks source link

[ios] custom transition error when change selectedIndex manually #31

Closed vallemar closed 1 year ago

vallemar commented 1 year ago

I have noticed in ios a bug when using custom transformers, if you select from outside an item number when you scroll it doesn't work well, you get stuck in the middle of the item. I think it's this line: https://github.com/nativescript-community/ui-pager/blob/master/src/ui-pager/index.ios.ts#L383-L386 I don't know if we should take into account the transformation of the view this is a repo for example: https://github.com/vallemar/nativescript-burger-inspiration if tap on the thumbnails of the hamburgers the scroll gets stuck.

https://user-images.githubusercontent.com/15719383/226667187-22885b39-845e-4250-ad21-339781c2f049.mov