Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.


Fixes two issues with ListView scroll event ScrollY value that were making it pretty unreliable and buggy.
Original code was commited in this commit
I'm not 100% sure if there can't be any other situation when the scroll fails to be tracked (maybe some fast scroll?), for which setting the
_contentOffsetto0might not be correct, but it fixes the "reloaded ItemsSource" issue, which seems to be the most common. When we are not able to track the offset at all, it's a bug anyway, so setting the offset to 0 seems good because it solves this issue at least.Issues Resolved
API Changes
None
Platforms Affected
Behavioral/Visual Changes
ScrollY value in Scrolled event might sometimes be different than before, because it's now fixed.
Testing Procedure
I tested the sample project in #8305 and #9370 and confirmed it is fixed. However, it might be good to test that setting the
_contentOffsetto0doesn't create any side effects in different situations.PR Checklist