-
Notifications
You must be signed in to change notification settings - Fork 693
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
ItemsRepeater scrolls to wrong element #1425
Comments
Sounds very similar to #1423, maybe same root cause? |
Quite possibly, I was unsure whether to put them both in the same issue, but I figured it would be easier to track in two issues if they turn out to be different bugs. |
The problem seems to go something like this:
So it seems like this comment, while maybe true for non-laid out anchors, does the precise opposite for laid-out anchors: microsoft-ui-xaml/dev/Repeater/ViewportManagerWithPlatformFeatures.cpp Lines 102 to 105 in e7e0823
|
microsoft/microsoft-ui-xaml#1425 describes a bug which causes scrolling to break with `ItemsRepeater`. This is a temporary fix that seems to work around it - not sure if it's the correct fix so when the WinUI issue is fixed, undo this change and port the change from there if it's different.
I would like to look into this issue. |
Describe the bug
ItemsRepeater
scrolls to the wrong element when scrolled to end and trying to bring into view last item.Steps to reproduce the bug
Edit BasicDemo to contain the following:
Run the program and manually scroll to the end (using scrollbar). Click an item to trigger
OnPointerPressed
.ItemsRepeater
scrolls to item 19 despite requesting item 9999.Expected behavior
Nothing happens because item 9999 is already visible.
Screenshots
Version Info
Current master (a53a650)
The text was updated successfully, but these errors were encountered: