dotnet / dotnet/maui

[Windows] [Scenario Day] ScrollTo not works the first time

Open
#7,148 5 comments 0 reactions 0 assignees View on GitHub
area-controls-collectionview platform/windows s/triaged s/verified scenario-day t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

ScrollTo not works the first time. The first time scroll to the first item. The second time works as expected.
![scroll-to-windows-issue](https://user-images.githubusercontent.com/6755973/168271143-11002c98-af2b-43d6-8c9e-df61772986fd.gif)

### Steps to Reproduce

1. Download [CollectionViewDemos.zip](https://github.com/dotnet/maui/files/8686453/CollectionViewDemos.zip)
2. Launch the App on Windows.
3. Navigate to the Scroll by Index sample and tap the Scroll button.

### Version with bug

Release Candidate 3 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

Windows

### Affected platform versions

Windows App SDK 17134

### Did you find any workaround?

_No response_

### Relevant log output

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by running CollectionViewDemos.zip on Windows and reproducing the issue in the Scroll by Index sample. Trace the ScrollTo entry point used by the Scroll button and the Windows CollectionView implementation; done means the first tap scrolls to the requested item, matching later taps.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.