Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
NafeelaNazhir opened this issue May 16, 2025 · 2 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@NafeelaNazhir
Copy link
Contributor

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

@NafeelaNazhir NafeelaNazhir added the t/bug Something isn't working label May 16, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label May 16, 2025
@anandhan-rajagopal
Copy link
Contributor

This issue has been verified in VS Code (v1.99.3) with versions (9,0.70, 9.0.60 & 9.0.0). It can be reproduced on the Android platform.

@anandhan-rajagopal anandhan-rajagopal added platform/android area-controls-collectionview CollectionView, CarouselView, IndicatorView s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 16, 2025
@PureWeen PureWeen added this to the Backlog milestone May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants