alexrainman / CarouselView

CarouselView control for Xamarin Forms
MIT License
436 stars 178 forks source link

[iOS] Fix transitioning direction of a CarouselView when position changed #598

Open mubaarakhassan opened 3 years ago

mubaarakhassan commented 3 years ago

Fixed an issue on iOS where updating the position of a CarouselView programmatically would always animate the transitions from right to left even when going down on the positioncounter.

Currently the CarouselView always bases the direction transition on the value of prevBtnClicked even if ShowArrows is set to false in XAML. This PR fixes that.

To reproduce this problem you can create a clean project, which includes the CarouselView and the ShowArrows is set to true, and press the previous arrow.