Repository navigation
feat(scrollviewer): Animate keyboard scrolling - #24741
MartinZikmund wants to merge 8 commits into
Conversation
|
Claude finished @MartinZikmund's task in 5m 7s —— View job Review complete ✅Todo list:
Verdict: Ship with minor fixesThe keyboard-glide implementation is a small, well-targeted change ( Findings (2, both Medium/Low severity)
Cross-cutting notes (not blocking)
|
f59ac0b to
fe158f4
Compare
|
Claude finished @MartinZikmund's task in 4m 36s —— View job Review complete ✅Todo list:
Verdict: Ship with minor fixesIndependently re-verified this diff against Findings (2)Both Low/Medium severity, posted inline:
Note: both of these were already surfaced by earlier automated review passes on this PR and don't appear to have been addressed yet in the current HEAD ( Cross-cutting notes (not blocking)
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Keyboard animation handoffs can ignore keys or visibly jump, and the new test lacks cleanup.
Review effort: Balanced
Findings: 2
Open (3)
What changed in this PR
Adds animated keyboard scrolling to ScrollViewer, including continuous arrow-key gliding and animated page/extent navigation.
Changes:
- Adds keyboard-specific glide behavior.
- Tracks in-flight wheel-motion targets.
- Updates and extends runtime tests.
| File | Description |
|---|---|
ScrollViewer.cs |
Routes keyboard scrolling through animations. |
ScrollContentPresenter.Managed.cs |
Adds glide retargeting. |
ScrollContentPresenter.cs |
Exposes projected motion targets. |
Given_ScrollViewer.cs |
Updates and adds keyboard tests. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
1d603ae to
9efc4a9
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)
Visual.AnchorPointis not the animated translation used for scrolling (it’s the transform origin,… · New The fixedTask.Delay(30)introduces timing sensitivity (slow CI/machine load, different frame… · New In the fallback path whenAddWheelImpulse(...)returns false, the code callsSet(...)with the… · New_horizontalOffsetIntent/_verticalOffsetIntentare updated beforeAdjustOffsetsForSnapPoints… · New Stop active wheel motion before handling extent navigation Seed wheel animation from current visual offsets Unload WindowContent during test cleanup
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: 2
Open (10)
visual.AnchorPoint.Yis not the scrolling translation and is typically constant (pivot in… · NewVisual.AnchorPointis not the animated translation used for scrolling (it’s the transform origin,… In the fallback path,Set(...)uses the originalhorizontalOffset/verticalOffsetinputs… · New_horizontalOffsetIntent/_verticalOffsetIntentare updated before… · New_horizontalOffsetIntent/_verticalOffsetIntentare updated beforeAdjustOffsetsForSnapPoints… In the fallback path whenAddWheelImpulse(...)returns false, the code callsSet(...)with the… The fixedTask.Delay(30)introduces timing sensitivity (slow CI/machine load, different frame… Stop active wheel motion before handling extent navigation Seed wheel animation from current visual offsets Unload WindowContent during test cleanup
|
Claude finished @MartinZikmund's task in 5m 5s —— View job Review complete ✅Todo list:
Verdict: Fix-firstIndependently re-traced the diff against Findings (3)
Cross-cutting notes (not separately filed)
|
|
Claude finished @MartinZikmund's task in 4m 23s —— View job Review complete ✅Todo list:
Verdict: Fix before mergeThe two previously-flagged nits are confirmed fixed at this HEAD: However, tracing through the interaction between the new glide/
Cross-cutting notes (not blocking)
|
fc611c9 to
d623ecb
Compare
d31bb38 to
bc553b9
Compare
bc553b9 to
dbc5d68
Compare
43f22d7 to
07d4ce5
Compare
Arrow, Page, Home and End keys teleported the offset. WinUI animates them (through DManip), so glide instead, on the same curve as the wheel: each press retargets the glide in flight, so a held key's auto-repeat keeps one motion, and the next press is measured from where the glide will rest. The glide lands exactly on the requested offset. Snap points and the offset intent are applied as for ChangeView, and the handled/focus logic is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
The existing keyboard tests now wait for the glide to settle before reading the offset. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Page Up/Down, Home and End now animate like an animated ChangeView, with ScrollPresenter's easing and distance-scaled duration, instead of on the wheel's decay. Arrows keep the decay glide. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G7PsEU6gSpLZXrYuK8WWpt
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G7PsEU6gSpLZXrYuK8WWpt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
07d4ce5 to
a659c1e
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24741/wasm-skia-net9/index.html |
|
The build 239163 found UI Test snapshots differences: Details
|
|
|



GitHub Issue: closes #24734
PR Type:
✨ Feature
What changed? 🚀
Keyboard scrolling teleported (~32 new frames/s under key auto-repeat). Now:
ChangeView(same easing and distance-scaled duration).Evidence (Win32 119 Hz): key-down newFps 32 → 120, judder 0.24–0.27 px; page-down 120, 0.4 px; no backward steps.
Tests (Runtime): consecutive key presses produce one continuous glide with a single final ViewChanged (fails before: one per press); existing keyboard tests wait for the animation.
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