Skip to content

[Android] CurrentItemChangedEventArgs.PreviousItem and PositionChangedEventArgs.PreviousPosition Not Updating Correctly When Using ScrollTo or Setting Position #29544

@NafeelaNazhir

Description

@NafeelaNazhir

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

  1. Run the Application CarouselViewIssue 25.zip
  2. 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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions