Description
When a CollectionView is scrolled programmatically using ScrollTo(index, position: ScrollToPosition.Start, animate: true), the Scrolled event ItemsViewScrolledEventArgs reports an incorrect value for FirstVisibleItemIndex on iOS and MacCatalyst. The reported FirstVisibleItemIndex does not match the index passed to ScrollTo, even after the scroll completes.
Steps to Reproduce
- Run the attached sample CollectionView.zip
- Tap the "ScrollTo" button
- Observe that the incorrect FirstVisibleItemIndex is shown.
Link to public reproduction project repository
No response
Version with bug
10.0.30
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Description
When a CollectionView is scrolled programmatically using ScrollTo(index, position: ScrollToPosition.Start, animate: true), the Scrolled event ItemsViewScrolledEventArgs reports an incorrect value for FirstVisibleItemIndex on iOS and MacCatalyst. The reported FirstVisibleItemIndex does not match the index passed to ScrollTo, even after the scroll completes.
Android.mov
iOS.mov
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
10.0.30
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output