Repository navigation
fix(scrollview): Animate ScrollTo/ScrollBy through the InteractionTracker - #24737
Conversation
|
Claude finished @MartinZikmund's task in 4m 22s —— View job Review complete ✅
Verdict: Ship. No inline findings posted — I couldn't substantiate a real defect after tracing the code paths below. Issues by severity: 0 blocking, 0 major, 0 minor. What I verified, and why it's not a finding:
Cross-cutting note (non-blocking): |
76031e5 to
cdda5c4
Compare
|
Claude finished @MartinZikmund's task in 3m 32s —— View job Review complete ✅
Verdict: Ship. 0 blocking, 0 major, 0 minor. No inline findings posted. What I checked, beyond re-verifying the prior automated pass on this PR:
Cross-cutting note (non-blocking, carried over from the prior pass): |
cdda5c4 to
13dee08
Compare
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
Review effort: Lite
Findings: 1
Open (7)
FrameTimestampInTicksis unconditionally reset tonull, which can clobber an existing timestamp… · New For non-KeyFrameAnimationanimations,_isAnimationRunningis never set tofalse, so the… · New For non-KeyFrameAnimationanimations,_isAnimationRunningis never set tofalse, so the… · New TheGenerated/source is being patched with#if falseto disable generated members. This is… · New These tests assume that defaultScrollTo/ScrollBywill animate and that ~16ms delays correlate… · New These tests assume that defaultScrollTo/ScrollBywill animate and that ~16ms delays correlate… · New These tests assume that defaultScrollTo/ScrollBywill animate and that ~16ms delays correlate… · New
What changed in this PR
Implements InteractionTracker custom animation support so animated ScrollView/ScrollPresenter view changes no longer throw and can complete correctly.
Changes:
- Implemented
TryUpdatePositionWithAnimation/TryUpdateScaleWithAnimationand aCustomAnimationtracker state that samples animations per frame. - Re-enabled previously ignored
ScrollPresenterruntime tests that depended on custom animation functionality. - Added new
Given_ScrollViewruntime tests covering animatedScrollTo/ScrollBy, interruption, and Home/End key behavior.
| File | Description |
|---|---|
| src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Controls/ScrollPresenter/ScrollPresenterViewChangeTests.mux.cs | Removes ignores to re-enable animated offset-change coverage. |
| src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Controls/ScrollPresenter/ScrollPresenterTests.mux.cs | Updates ignore reason now that custom animation is implemented. |
| src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Controls/Given_ScrollView.cs | Adds runtime tests validating animated scrolling completion and interruption. |
| src/Uno.UI.Composition/Generated/3.0.0.0/Microsoft.UI.Composition.Interactions/InteractionTrackerCustomAnimationStateEnteredArgs.cs | Disables generated stub members to allow real implementation to compile. |
| src/Uno.UI.Composition/Generated/3.0.0.0/Microsoft.UI.Composition.Interactions/InteractionTracker.cs | Removes generated throwing stubs for animated update APIs. |
| src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTrackerState.cs | Adds default state handling for animated position/scale updates. |
| src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTrackerInteractingState.cs | Ignores animated requests while interacting (raises RequestIgnored). |
| src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTrackerCustomAnimationStateEnteredArgs.cs | Adds real args type used by CustomAnimationStateEntered. |
| src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTrackerCustomAnimationState.cs | Implements per-frame animation evaluation & clamping, and state teardown. |
| src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTracker.cs | Adds public TryUpdate*WithAnimation APIs returning request ids. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
Claude finished @MartinZikmund's task in 2m 22s —— View job Review complete ✅
Verdict: Ship. 0 blocking, 0 major, 0 minor. No inline findings posted — independently traced the state machine (construction → Cross-cutting note (non-blocking, unchanged from prior passes): What's confirmed solid:
|
|
Claude finished @MartinZikmund's task in 1m 30s —— View job Review complete ✅
Verdict: Ship. 0 blocking, 0 major, 0 minor. No new inline findings. The diff is unchanged from the previous two automated review passes on this PR (same two commits, same 10 files, same line counts) — this was independently re-traced rather than re-stated, focusing on angles not yet explicitly covered:
Cross-cutting note (non-blocking, carried over from prior passes, included for completeness): |
13dee08 to
6b551f2
Compare
|
Claude finished @MartinZikmund's task in 3m 24s —— View job Review complete ✅
Verdict: fix-first. 1 inline finding posted (medium severity, correctness) — 0 blocking, 1 non-blocking-but-real. Issue posted: a non- Copilot's other findings — independently traced, not reposted (false positives):
Everything else checked and found solid: |
6b551f2 to
3382e3c
Compare
|
Claude finished @MartinZikmund's task in 1m 20s —— View job Review complete ✅
Verdict: fix-first. 0 new blocking, 0 new major/minor. No new inline comment posted this pass. Why no new inline comment: the diff is byte-for-byte unchanged from the version already reviewed in the prior pass (same two commits Everything else checked and still solid (no regressions from the unchanged diff):
Minor style nit (non-blocking, not re-flagged inline): |
3382e3c to
34d4d5e
Compare
|
Claude finished @MartinZikmund's task in 14s —— View job Review summaryVerdict: fix-first. I found no new issues. The diff is the same two commits as the last pass ( Issues by severity: 0 blocking, 1 open (medium, carried over), 0 new. Still open:
Cross-cutting notes (non-blocking):
|
|
Claude finished @MartinZikmund's task in 16s —— View job Review complete ✅
Verdict: fix-first. 0 blocking, 1 major or minor issue (still open), no new inline comments. The branch is unchanged since the last pass. It has the same two commits ( Still open: the earlier inline finding on
This is harmless for Non-blocking notes:
|
34d4d5e to
2191153
Compare
|
Claude finished @MartinZikmund's task in 15s —— View job Review summaryVerdict: fix-first. No new findings. The two commits are unchanged ( Issues by severity: 0 blocking, 1 open (medium, carried over), 0 new. Still open:
Non-blocking notes:
No code changes were made, and I did not build or run tests; this was a review by inspection. |
2191153 to
14ff942
Compare
|
The build 238149 found UI Test snapshots differences: Details
|
|
Claude finished @MartinZikmund's task in 21s —— View job Review summaryVerdict: ship. 0 blocking, 0 major, 0 minor. No inline comments posted. This was a review by inspection; I did not build or run tests. Changes since the last automated pass (
Previously open item (non- Non-blocking notes:
|
…cker InteractionTracker.TryUpdatePositionWithAnimation/TryUpdateScaleWithAnimation were generated stubs that threw, so the default animated ScrollView.ScrollTo/ ScrollBy, Home/End and scrollbar track clicks crashed on every Skia target. The tracker now enters its CustomAnimation state, which samples the supplied animation once per frame on the UI thread from its target's FrameStarting, at the frame's timestamp, like the tracker's inertia handlers. It returns to Idle with the request id when the animation ends, so ScrollPresenter raises ScrollCompleted once. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Adds Given_ScrollView runtime tests for the default animated ScrollTo/ScrollBy, interruption by a second ScrollTo and Home/End on a focused ScrollView, and re-enables the MUX ScrollPresenter offset-animation tests that were ignored for lack of the InteractionTracker CustomAnimation state. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Restores the previous frame timestamp after evaluating instead of clearing it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8YHRRzBxd2qi1Abr5cEfG
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8YHRRzBxd2qi1Abr5cEfG
KeyFrameAnimation now stops from OnEvaluatedValueApplied rather than Evaluate, so the tracker never left CustomAnimation and ScrollView never raised ScrollCompleted. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8YHRRzBxd2qi1Abr5cEfG
ed1997d to
dda6789
Compare
|
Claude finished @MartinZikmund's task in 22s —— View job Review summaryVerdict: ship. 0 blocking, 0 major, 0 minor. No inline comments posted. This was a review by inspection; I did not build or run tests. Latest state of
Non-blocking notes:
|
|
The build 238192 found UI Test snapshots differences: Details
|
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
The animated offsets tests enabled by #24737 assume ~60fps: they expect several ViewChanged within a 50-1000ms animation, and a cancel or interrupt (queued for 3 ticks, as in WinUI) to land before it ends. On WebGPU/SwiftShader a frame takes hundreds of ms, so the animation completes in one or two frames. Lengthen offsets-change animations to 1-5s in these tests via ScrollPresenterTestHooks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01L4YBGyfjv1uKVn6FUFxSEF
The animated offsets tests enabled by #24737 assume ~60fps: they expect several ViewChanged within a 50-1000ms animation, and a cancel or interrupt (queued for 3 ticks, as in WinUI) to land before it ends. On WebGPU/SwiftShader a frame takes hundreds of ms, so the animation completes in one or two frames. Lengthen offsets-change animations to 1-5s in these tests via ScrollPresenterTestHooks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01L4YBGyfjv1uKVn6FUFxSEF


GitHub Issue: closes #24731
PR Type:
🐞 Bugfix
What changed? 🚀
InteractionTracker.TryUpdatePositionWithAnimation(and the scale variant) was only a throwing generated stub, so animatedScrollView.ScrollTo/ScrollBy, keyboard Home/End and scrollbar track clicks threwNotImplementedException.Implemented per WinUI's state table: the tracker enters the CustomAnimation state (ignored while interacting), samples the supplied animation each frame on the UI thread from
FrameStarting, clamps, and returns to Idle with the request id soScrollCompletedfires once.Tests (Runtime): 4 new Given_ScrollView tests (ScrollTo default options, ScrollBy, interrupted ScrollTo, Home/End) fail before, pass after; 5 MUX ScrollPresenter tests previously ignored for this reason are re-enabled and pass. Standalone variant for master without this stack:
dev/mazi/scrollview-animated-scrollto(not opened).Measured with the scroll-smoothness probe from #24711 (
sample=Scrolling/ScrollSmoothnessTester&scrollprobe=...). newFps = presented frames showing a newly recorded frame per second; judder = RMS residual of the offset against a local quadratic through neighbouring presented frames.Full runtime suite (Skia Win32, 150% scale): no new failures versus master; the remaining failures are pre-existing (ListViewBase ×6, ScrollPresenterTests ×3 at fractional scale).
PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx