You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Android] CurrentItemChangedEventArgs.PreviousItem and PositionChangedEventArgs.PreviousPosition Not Updating Correctly When Using ScrollTo or Setting Position #29544
When programmatically scrolling the CarouselView using the ScrollTo method or setting the Position property, the CurrentItemChangedEventArgs.PreviousItem and PositionChangedEventArgs.PreviousPosition values are not updated correctly.
Enter the index value in scroll to or Position entry and observe the behavior.
Expected Behavior:
When using ScrollTo or setting the Position property, the CurrentItemChangedEventArgs.PreviousItem and PositionChangedEventArgs.PreviousPosition values should correctly reflect the previous item and position before the scroll or position change.
Description
When programmatically scrolling the CarouselView using the ScrollTo method or setting the Position property, the CurrentItemChangedEventArgs.PreviousItem and PositionChangedEventArgs.PreviousPosition values are not updated correctly.
Screen.Recording.2025-05-16.at.1.51.35.PM.mov
Steps to Reproduce
Expected Behavior:
When using ScrollTo or setting the Position property, the CurrentItemChangedEventArgs.PreviousItem and PositionChangedEventArgs.PreviousPosition values should correctly reflect the previous item and position before the scroll or position change.
Link to public reproduction project repository
No response
Version with bug
9.0.70 SR7
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output