Skip to content

[iOS, Mac] CollectionView Scrolled event reports incorrect FirstVisibleItemIndex after programmatic ScrollTo #33614

@TamilarasanSF4853

Description

@TamilarasanSF4853

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

  1. Run the attached sample CollectionView.zip
  2. Tap the "ScrollTo" button
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iosplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions