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
19 stars 10 forks source link

fix[ios]: change selectedIndex with transformer break design #33

Closed vallemar closed 1 year ago

vallemar commented 1 year ago

@farfromrefug Now when you scroll to an item with a width/height other than 100% and have a custom transformer the item is centered vertically or horizontally on the screen.

Reference: https://stackoverflow.com/a/53798708/6015400

Close: https://github.com/nativescript-community/ui-pager/issues/31

Note: I don't know why it is worth 1 and 0 but it is working for horizontal and vertical pagers

farfromrefug commented 1 year ago

@vallemar great find. Could just add a comment explaining a bit maybe with the stackoverflow link?

vallemar commented 1 year ago

@farfromrefug comment added!

vallemar commented 1 year ago

@farfromrefug can you publish a versión with this change?

farfromrefug commented 1 year ago

@vallemar I think I just did as posted that message . can you confirm?

vallemar commented 1 year ago

Ohh yes @farfromrefug, this change is incluyed on last release. Thanks!