WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

Carousel SelectedIndex backs to 0 after scroll up

Open adamfierek opened this issue 11 months ago • 15 comments

Describe the bug

If Carousel has orientation vertical and binding to SelectedIndex (TwoWay), when user scrolls up, Carousel produces change of SelectedIndex to current-1 and then immediately to 0. Scrolling down works good.

Regression

No response

Reproducible in sample app?

  • [ ] This bug can be reproduced in the sample app.

Steps to reproduce

1. Add Carousel to Page and set orientation to vertical
2. Add binding to SelectedIndex (TwoWay)
3. Scroll down to last element
4. Scroll up to pre-last element

Expected behavior

Scrolling should work normal in both directions. Carousel should not back to first element when user tries to scroll up.

Screenshots

No response

Windows Build Number

  • [X] Windows 10 1809 (Build 17763)
  • [ ] Windows 10 1903 (Build 18362)
  • [ ] Windows 10 1909 (Build 18363)
  • [ ] Windows 10 2004 (Build 19041)
  • [ ] Windows 10 20H2 (Build 19042)
  • [ ] Windows 10 21H1 (Build 19043)
  • [X] Windows 11 21H2 (Build 22000)
  • [ ] Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • [X] Windows 10, version 1809 (Build 17763)
  • [ ] Windows 10, version 1903 (Build 18362)
  • [ ] Windows 10, version 1909 (Build 18363)
  • [ ] Windows 10, version 2004 (Build 19041)
  • [ ] Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

No response

Device form factor

No response

Nuget packages

No response

Additional context

No response

Help us help you

No.

adamfierek avatar Jul 26 '23 08:07 adamfierek