Skip to content

feat(scroll): Drive scroll motion from a uniform frame clock - #23987

Draft
MartinZikmund wants to merge 8 commits into
masterfrom
dev/mazi/scroll-smoothness-2
Draft

MartinZikmund wants to merge 8 commits into
masterfrom
dev/mazi/scroll-smoothness-2

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: closes #23985

PR Type

✨ Feature


TL;DR

Scroll motion was produced by six independent sources, none of which agreed on a clock, and two input paths quantized motion before it ever reached the visual. This PR gives every scroll motion one timestamp per frame and makes each one a closed-form function of time, then replaces the ad-hoc curves with the ones the host platform actually uses.


The problem, in one picture

Motion used to be evaluated after the frame it belonged to had already been recorded, from a clock nobody had aligned to the display:

sequenceDiagram
    autonumber
    participant OS as Native vsync
    participant UI as UI thread tick
    participant Rec as Record (SKPicture)
    participant Scr as Screen

    rect rgb(255, 235, 235)
    Note over OS,Scr: BEFORE — driver runs after the record
    OS->>UI: frame callback
    UI->>Rec: record picture (offset N)
    Rec->>Scr: present offset N
    Scr-->>UI: dispatcher continuation
    UI->>UI: CompositionTarget.Rendering fires<br/>driver reads Stopwatch, writes offset N+1
    end
Loading

Two things go wrong there. The write lands one frame late, structurally — every fling was a frame behind the finger. And the driver times itself off a raw clock read taken whenever the dispatcher happened to get there, which wobbles by milliseconds around a cadence that is otherwise exact.

For anything whose position is a function of time, that wobble becomes position error:

                    ideal grid          8.33ms   8.33ms   8.33ms   8.33ms
                                     ────┼────────┼────────┼────────┼────
    raw clock read (what we had)         │  ▲     │▲       │    ▲   │  ▲
                                         │  └ +1.4ms       │        │
    position error = v · Δt              │
      at 3000 px/s, ±1.4ms  ⇒  ±4.2 px   │   ← a *third* of a 120Hz frame step

And it gets worse as refresh rate rises: the error stays v·Δt while the frame step halves.


What this PR establishes

I1 — One frame, one timestamp

sequenceDiagram
    autonumber
    participant OS as Native vsync
    participant UI as UI thread tick
    participant Rec as Record (SKPicture)
    participant Scr as Screen

    rect rgb(235, 250, 235)
    Note over OS,Scr: AFTER — driver runs before layout, before the record
    OS->>UI: frame callback → ArmFrameDriverTick()
    UI->>UI: RaiseFrameStarting(t) → every driver evaluates at t
    UI->>UI: UpdateLayout() — cleans what the drivers dirtied
    UI->>Rec: record picture (offset N)
    Rec->>Scr: present offset N
    end
Loading

t is not a clock read. A new FrameClock recovers a phase-locked grid from the median tick interval:

Situation What the clock does
Steady cadence advances one whole period, gentle 1/16 pull toward real time
Dropped frame advances two periods — the motion must cover both, because the screen showed one picture for both
Idle gap between motions re-anchors instead of crawling forward
Bursty ticks inside one interval never steps backward (a backward step reads as "fling not started" and snaps content home)

It lives on the CompositionTarget, not the process-wide Compositor: several record loops sharing one clock push near-zero intervals into its window and collapse the estimated period.

I2 — Motion is a function of time, not of event arrival

flowchart TD
    W["Wheel detent"] -->|impulse added to running velocity| D["ScrollDecaySimulation<br/><i>x(t) = x₀ + v/λ · (1 − e^−λt)</i>"]
    F["Finger lift"] --> VT["ScrollVelocityTracker<br/><i>least-squares quadratic fit</i>"]
    VT -->|launch velocity| FL["ScrollFlingSimulation<br/><i>platform curve, closed form</i>"]
    D --> FC(["FrameStarting(t)"])
    FL --> FC
    FC --> S["Set(offset) → AnchorPoint"]
Loading

Every one is closed-form in absolute time, so a late or early frame produces the correct position instead of accumulating error — which matters exactly where the frame rate changes mid-motion, as it does on Android browsers when the finger lifts.


The three simulations

Model Why this one
Wheel ScrollDecaySimulation — exponential decay, λ = 8/s Memoryless, so a detent is an impulse added to the running velocity, not a restarted ease. Restarting an ease per detent is what makes wheel scrolling judder: an ease-out front-loads its motion, so every restart re-injects a large first step on an arbitrary frame.
Touch, Android/Win/Linux ScrollFlingSimulation — OverScroller spline Reproduces getSplineFlingDistance exactly. Note this is not Flutter's ClampingScrollSimulation, which overshoots Android by ~21%; the extra DECELERATION_RATE · INFLEXION factor is what makes the distance match. PhysicalCoefficient uses 96 DIPs/inch, not Flutter's 160 dp/inch — using Flutter's value directly would make every fling travel 1.667× too far.
Touch, Apple ScrollFlingSimulation — UIScrollView drag x(t) = x₀ + v₀ · (0.135^t − 1) / ln 0.135, matching decelerationRate.normal (0.998/ms). Applied on iOS/macOS/Mac Catalyst and to a WASM app hosted by an iOS or iPadOS browser — the user's other apps decelerate on that curve, so ours has to.

Launch velocity comes from a least-squares quadratic fit over the recent gesture (Flutter's VelocityTracker parameters, which Avalonia also mirrors) rather than a first-vs-last difference. Inertia distance grows with the square of launch velocity, so a two-point estimate that catches one short interval sends the content thousands of pixels.


De-quantizing the input

Three separate places rounded motion away before it reached any of the above:

flowchart LR
    HW["Digitizer<br/>sub-pixel"] --> P1["Win32: (int)(px / scale)<br/>❌ whole logical px"]
    P1 --> P2["Manipulation delta gate<br/>❌ ≥ 2 logical px"]
    P2 --> P3["Wheel: int ÷ 120<br/>❌ floors touchpads to 0"]
    P3 --> OUT["ScrollViewer"]
Loading
  • Win32 truncated touch/pen to whole logical pixels — and at 150%/200% that discarded precision the hardware genuinely reported. Now reads ptHimetricLocation (HIMETRIC, ~26× finer), keeping the whole-pixel screen→client translation separate so the sub-pixel part survives it. Mouse stays on ptPixelLocation, which Win32 reports in integer screen pixels anyway.
  • X11 truncated the XInput2 sub-pixel position to feed XTranslateCoordinates, which only takes whole pixels. Now translates the floor and re-adds the fraction.
  • The manipulation delta threshold bounds the volume of public ManipulationDelta events; on the scroll path it acted as a motion quantizer — content did not move until 2 px accumulated, then jumped by the whole amount, so a slow drag advanced every other frame. Now opt-in per recognizer (ReportsUnquantizedDeltas), set only for direct manipulation, so app-level recognizers keep their event volume unchanged. Inertia already bypassed it for the same reason.
  • Wheel deltas were integer-divided by 120, flooring every sub-detent report from a precision touchpad to zero.

Also in here

  • Frame drivers tick once per presented frame. The tick is armed from the frame's own UI-thread render callback. It used to re-request itself unconditionally, and since no Skia dispatcher pump is vsync-throttled, drivers free-ran: 15 000–19 000 ticks/s for 120 presents/s on Win32 (and as many layout passes), which collapsed the frame clock's estimated interval to 0.04 ms so its grid never engaged at all.
  • InteractionTracker inertia moved off System.Threading.Timer — it was writing composition state from a thread-pool thread, and sampling at a fixed 17 ms regardless of the display, so most frames on a 120 Hz panel had nothing new to show.
  • A recorded frame is counted under the gate that publishes it — a Draw acquiring the gate in between read a fresh picture against a stale generation and logged a dropped frame that never happened.
  • DamageRegion keeps its damage when a snapshot throws, and drops contributions once disposed — a render callback enqueued before the owning target unregistered can still reach it, where writing to the freed native paths would be an access violation.
  • The macOS host unregisters its XamlRoot on close, which is what releases a closed target's frame drivers and pending render jobs.

Reviewing this

Suggested order — each layer stands alone:

  1. FrameClock.skia.cs + Given_Compositor — the grid, and the eight tests that pin its behaviour (jitter, drift, dropped frames, idle re-anchor, monotonicity, hitches).
  2. CompositionTarget.FrameClock.skia.cs + Given_CompositionTarget — driver lifetime and cadence.
  3. ScrollFlingSimulation / ScrollDecaySimulation / ScrollVelocityTracker — pure functions, unit-testable, no UI.
  4. ScrollContentPresenter.Managed.cs — the wiring, and the gesture lifecycle around it.

Explicitly not adopted, each a silent parity deviation or a regression: pointer resampling as the headline fix (Flutter ships it off, and it costs ~38 ms of latency); pointer prediction/extrapolation (absent from dxaml, causes overshoot); a CubicBezier on default programmatic scroll (WinUI supplies no easing function).

Design rationale and the full research trail are in specs/scroll-smoothness/spec.md.


PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample
    • Given_Compositor (frame clock), Given_CompositionTarget (driver cadence and lifetime), Given_ScrollViewer (scroll motion, fling distance, press-to-stop, final-offset publication), Given_Visual_Damage (disposed-region guard), plus a ScrollSmoothnessBenchmark sample for manual frame-pacing comparison.
  • 📚 Docs added/updated — specs/scroll-smoothness/spec.md carries the design. No public API surface changed.
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests

Validation

Compile — Uno.UI-Skia-only.slnf, Uno.UI.UnitTests.csproj, SamplesApp (net10.0-desktop): 0 errors.

Runtime (tests) — Skia Desktop, Given_ScrollViewer + Given_Visual_Damage: 75/75 green. Each added test was verified red first, including:

Test Red before
When_PressAndHold_During_Fling_Then_It_Stops content coasted 1337 px in 300 ms under a held finger
When_Frame_Driver_Writes_Then_Ticked_Once_Per_Frame 206 129 driver ticks for 120 frames
When_Frame_Driver_Writes_Nothing_Then_Still_Ticked_Every_Frame a silent driver got 1 tick in a second
When_Window_Closed_Then_Frame_Drivers_Dropped timed out waiting for Compositor.IsAnimating to clear
When_Region_Is_Disposed_Then_Contributions_Are_Dropped disposed region still reported its rects

Runtime (pacing — the actual point) — per-frame counter on both heads, wheel decay driven synthetically:

Head Driver ticks/s before After Frame-clock interval before → after
Win32 15 000–19 000 120 ticks : 120 records : 120 presents 0.04 ms → 8.4 ms
WASM Skia 520–796 ~110 ticks : 113 records : 115 presents 0.4–0.5 ms → 8.30 ms

Only the ratios are meaningful — the benchmark sample subscribes CompositionTarget.Rendering, which holds presents at the refresh rate whether or not anything moves.

Because this changes feel rather than API, the ScrollSmoothnessBenchmark sample remains the reviewer-facing check: it reports frame pacing directly, which a pass/fail test cannot capture.


🤖 Generated with Claude Code

https://claude.ai/code/session_01BotfVqadqduoPktL3wFznV

Copilot AI lite review requested due to automatic review settings August 6, 2026 14:24
@github-actions github-actions Bot added area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/automation Categorizes an issue or PR as relevant to project automation kind/documentation labels Aug 6, 2026
@github-actions

github-actions Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 10m 50s —— View job


Code Review

PR #23987 — feat(scroll): Drive scroll motion from a uniform frame clock

  • Gather context and understand the PR
  • Review new core files: FrameClock.skia.cs, CompositionTarget.FrameClock.skia.cs
  • Review scroll simulations: ScrollFlingSimulation.cs, ScrollDecaySimulation.cs
  • Review ScrollVelocityTracker.cs
  • Review ScrollContentPresenter.Managed.cs changes
  • Review Compositor.skia.cs, InteractionTracker changes
  • Review GestureRecognizer changes
  • Review runtime tests (Given_Compositor.cs, Given_ScrollViewer.cs)
  • Review sample app (ScrollSmoothnessBenchmark)
  • Post inline comments and summary

Overall verdict

fix-first — 1 medium issue with a targeted fix, 1 low-severity efficiency issue, and 2 pre-existing items worth cleaning up while the file is open.

Issues found: 2 (inline) + 2 pre-existing (not in diff)

Medium — CompositionInertiaProcessorTimer.Stop() re-fetches target (inline comment on GestureRecognizer.Manipulation.InertiaProcessor.cs:378)

Stop() calls CompositionTarget.MainFrameDriverTarget again rather than using the same instance captured in Start(). If a second window opens or the first window closes between start and stop, the handler may be unsubscribed from a different target than the one it was registered on — leaving it subscribed forever and the _handler field nulled so it can never be cleaned up. The ~CompositionInertiaProcessorTimer finalizer has the same flaw. Fix: store the target local as a field in Start() and use that field in Stop().

Low — running condition can keep the fling loop alive unnecessarily (inline comment on ScrollContentPresenter.Managed.cs:601)

In a ScrollViewer that is scrollable on both axes, a purely vertical fling with HorizontalOffset between the edges (0 < h < maxH) will have h > 0 && h < maxH == true throughout the fling. If the vertical motion settles at an edge before _flingV.Duration expires, the || keeps running = true and the loop continues issuing no-op Set calls — wasting frame-clock requests — until the duration cutoff. In the common single-axis case this doesn't arise (maxH = 0 → h is clamped to 0, so h > 0 == false), but it is reachable for mixed-axis content.

Pre-existing issues (not in this diff, worth noting)

  • using static System.Net.Mime.MediaTypeNames; at ScrollContentPresenter.Managed.cs:20 has no purpose in a scroll presenter; it is an orphan import, likely a debug leftover from before this PR.
  • The XML doc comment on ScrollOptions references a <param name="LinearAnimationDuration"> that no longer exists in the record definition (ScrollContentPresenter.Managed.cs:1073–1076).

What's working well

  • FrameClock phase-locking design (median period, monotone-by-construction, idle-gap exclusion) is clean and the six runtime tests cover all the key invariants (jitter smoothing, no-drift, dropped-frame step, re-anchor, no-backward-step, burst-isolation).
  • ScrollFlingSimulation analytic curves (Android OverScroller and iOS UIScrollView) are correctly derived and match their reference sources. ScrollDecaySimulation's memoryless impulse composition eliminates the per-detent restart hitch.
  • ScrollVelocityTracker's QR-based quadratic fit matches Flutter/Avalonia conventions; the AssumeStoppedMs = 40 gap guard prevents a restart mid-gesture from injecting stale samples.
  • The ReportsUnquantizedDeltas opt-in cleanly bypasses the manipulation threshold for the scroll path without touching the public ManipulationDelta volume.
  • Floating-point cast for the precision-touchpad wheel delta ((double)delta / 120) is the right fix and the comment explains why.
  • Frame drivers ticking before layout (not inside the record) is the correct ordering; the _fpsHelper.OnFrameRecorded() move under the gate is a real correctness fix.
  • Given_Compositor tests are straightforward unit tests; Given_ScrollViewer new tests (When_Fling_Then_DistanceMatchesTheGesture, When_SlowTouchDrag_Then_ScrollAdvancesEveryMove) are behavior-testing the right property (proportionate fling, every-move advance) rather than implementation internals.

@mergify

mergify Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Implements a Skia-specific “single frame timestamp” discipline for scroll-related motion, routing wheel/touch inertia through a uniform frame clock so scroll position is evaluated once per frame (pre-layout / pre-record) instead of being driven by event arrival timing.

Changes:

  • Add a Skia FrameClock and a CompositionTarget.FrameStarting pre-layout hook to provide a single per-frame timestamp to motion drivers.
  • Rework ScrollViewer wheel + touch inertia to be time-parameterized (decay/fling simulations, unquantized deltas, fractional wheel detents).
  • Add runtime tests plus a manual benchmark sample and a design spec documenting the rationale and constraints.

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Uno.UI/UI/Xaml/Media/CompositionTarget.Rendering.skia.cs Moves frame-record accounting under the publish gate to avoid false dropped-frame reporting.
src/Uno.UI/UI/Xaml/Media/CompositionTarget.FrameClock.skia.cs Introduces FrameStarting event + per-target frame clock integration for Skia.
src/Uno.UI/UI/Xaml/Internal/InputManager.Pointers.Managed.cs Sends fractional wheel “detents” (double) to trackers to avoid precision touchpad dead-zone.
src/Uno.UI/UI/Xaml/Internal/DirectManipulation.cs Enables unquantized deltas for direct manipulation (scrolling) gesture recognizer.
src/Uno.UI/UI/Xaml/Internal/CoreServices.cs Raises FrameStarting pre-layout (Skia) to tick motion drivers before recording.
src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollFlingSimulation.cs Adds closed-form fling simulation (Android/iOS parity) for touch inertia.
src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollDecaySimulation.cs Adds exponential decay simulation for wheel motion with impulse accumulation.
src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollContentPresenter.Managed.cs Wires wheel decay + touch fling to FrameStarting, adds velocity fitting, and updates animation frame handling.
src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollContentPresenter.cs Switches wheel path to feed the accumulating decay via AddWheelImpulse.
src/Uno.UI/UI/Input/WinRT/ScrollVelocityTracker.cs Adds least-squares velocity estimation over recent samples for stable inertia launch velocity.
src/Uno.UI/UI/Input/WinRT/GestureRecognizer.Manipulation.InertiaProcessor.cs Uses FrameStarting (Skia) to tick inertia pre-record instead of CompositionTarget.Rendering.
src/Uno.UI/UI/Input/WinRT/GestureRecognizer.Manipulation.cs Ensures manipulation deltas can be committed even when below thresholds for scrolling.
src/Uno.UI/UI/Input/WinRT/GestureRecognizer.cs Adds ReportsUnquantizedDeltas init flag to control delta threshold behavior for scroll.
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ScrollViewer.cs Updates/adds scroll behavior tests for wheel monotonicity, fling proportionality, and unquantized slow-drag.
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Composition/Given_Compositor.cs Adds frame clock behavior tests (jitter smoothing, drift, drops, reanchor, monotonicity).
src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTrackerState.cs Updates wheel delta API to accept double ticks.
src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTrackerInteractingState.cs Signature update for wheel delta (double).
src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTrackerInertiaState.cs Uses double wheel delta and casts to float vectors for inertia handling.
src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTrackerIdleState.cs Uses double wheel delta and adjusts velocity computation accordingly.
src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTrackerCustomAnimationState.cs Signature update for wheel delta (double).
src/Uno.UI.Composition/Composition/InteractionTracker/InteractionTracker.cs Documents and implements fractional wheel detents end-to-end (double).
src/Uno.UI.Composition/Composition/FrameClock.skia.cs New frame clock implementation based on median tick intervals and monotone correction.
src/Uno.UI.Composition/Composition/Compositor.skia.cs Counts “frame drivers” as animating work so WaitForIdle(...waitForCompositionAnimations:true) covers them.
src/SamplesApp/SamplesApp.Samples/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollSmoothnessBenchmark.xaml.cs Adds a manual benchmark to report per-frame offset-delta jitter statistics while scrolling.
src/SamplesApp/SamplesApp.Samples/Windows_UI_Xaml_Controls/ScrollViewerTests/ScrollSmoothnessBenchmark.xaml UI for the scroll smoothness benchmark sample.
specs/scroll-smoothness/spec.md Adds design spec capturing goals, invariants, research references, and staged plan.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/scroll-damage branch 2 times, most recently from 80cfa2b to 68659d3 Compare August 14, 2026 18:24
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/scroll-damage branch 2 times, most recently from 5ffffb6 to 77c3d3f Compare August 21, 2026 15:50
@MartinZikmund
MartinZikmund changed the base branch from dev/mazi/scroll-damage to feature/breakingchanges August 21, 2026 15:50
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/scroll-smoothness-2 branch from 8f48b38 to 021913b Compare August 21, 2026 15:53
@github-actions

github-actions Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 5m 36s —— View job


Code Review

PR #23987 — feat(scroll): Drive scroll motion from a uniform frame clock

  • Gather context and read key changed files
  • Review FrameClock.skia.cs and CompositionTarget.FrameClock.skia.cs
  • Review scroll simulations (ScrollFlingSimulation.cs, ScrollDecaySimulation.cs)
  • Review ScrollVelocityTracker.cs
  • Review ScrollContentPresenter.Managed.cs changes
  • Review GestureRecognizer.Manipulation.InertiaProcessor.cs
  • Review Compositor.skia.cs and runtime tests
  • Post inline comments
  • Post summary

Overall verdict: fix-first

2 medium issues, 2 low issues, 1 nit. The medium issues follow the same pattern (cached-target vs. re-fetched target) and have the same fix; the low issues are each bounded to a specific scenario with a known workaround.

Issues by severity

Medium (2)

  • CompositionInertiaProcessorTimer.Stop() re-fetches MainFrameDriverTarget instead of using the instance captured in Start(). In a multi-window app, or if the first window closes between Start and Stop, the handler can be removed from a different CompositionTarget than the one it was added to — leaving a permanent zombie subscription. The finalizer at line 412 has the same flaw. See inline comment →

  • StartFling/StopFling and AddWheelImpulse/StopWheelDecay null-forgive FrameDriverTarget!, which walks up the visual tree on every call. When OnUnloaded fires after the element is removed from the tree, Visual.CompositionTarget can already be null — the ! converts that into a NullReferenceException. This is the same pattern as the CompositionInertiaProcessorTimer bug above: store the CompositionTarget at subscription time and use the stored reference at unsubscription. See inline comment →

Low (2)

  • Wheel decay time-base mismatch. AddWheelImpulse initializes ScrollDecaySimulation from compositor.TimestampInTicks (raw clock); the first OnWheelDecayFrame tick delivers a FrameClock timestamp, which converges behind the raw clock via a /16 pull. If the FrameClock timestamp is less than the start timestamp, elapsed ≤ 0 and Tick returns without advancing — a no-op first frame on every new wheel scroll. The fling avoids this by anchoring on the first frame tick (_flingStartTimestamp = 0); the decay should do the same. See inline comment →

  • running condition in OnFlingFrame extends the fling with no-op frames in a two-axis-scrollable ScrollViewer when a purely one-axis fling settles at an edge. See inline comment →

Nit (1)

Pre-existing (not in diff, worth cleaning up)

  • using static System.Net.Mime.MediaTypeNames; at ScrollContentPresenter.Managed.cs:19 is an orphan import — no member from that class is used in the file. Noted alongside the stale doc comment finding. See inline comment →
  • ScrollOptions XML doc carries a <param name="LinearAnimationDuration"> entry that references a parameter no longer in the record definition.

What's working well

  • FrameClock design is solid: median-based period estimation, monotone-by-construction, idle-gap exclusion, and the six runtime tests cover all key invariants (jitter, no-drift, dropped-frame step, re-anchor, no-backward-step, burst isolation). The period-/16 pull avoids the threshold-flip problem a hard cutoff would produce.
  • ScrollFlingSimulation correctly re-derives the Android OverScroller and iOS UIScrollView analytic curves. The PhysicalCoefficient formula using 96.0 for WinUI DIPs rather than Flutter's 160 is the right adjustment.
  • ScrollDecaySimulation memoryless impulse composition eliminates the per-detent restart jitter. The closed-form integration is correct and the MinVelocity stop-guard is appropriate.
  • ScrollVelocityTracker QR-based quadratic fit matches Flutter/Avalonia conventions. The AssumeStoppedMs = 40 gap guard cleanly prevents stale samples from a previous gesture inflating the launch velocity.
  • ReportsUnquantizedDeltas flag cleanly bypasses the manipulation delta threshold for the scroll path without touching the public ManipulationDelta event volume.
  • Compositor.skia.cs correctly counts frame drivers toward IsAnimating so WaitForIdle(waitForCompositionAnimations: true) covers them.
  • FrameStarting ordering (before layout rather than inside record) is the correct fix for the structural one-frame inertia latency; the code comment explains the invariant clearly.
  • _fpsHelper.OnFrameRecorded() moved under _frameGate is a genuine correctness fix for the false dropped-frame logging.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 229251 found UI Test snapshots differences: skia-linux-screenshots: 73, skia-windows-screenshots: 183

Details
  • skia-linux-screenshots: 73 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • Attributed_text_FontSize_Changing.png
    • DynamicFont.png
    • Examples.png
    • Buttons.png
    • ImageBrush_Stretch.png
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • ButtonClippingTestsControl.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • ContentControl_Inheritance.png
    • Focus_FocusVisual_Properties.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • ContextRequested.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • CalendarView_Theming.png-dark
  • skia-windows-screenshots: 183 changed over 2370

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Battery.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • BitmapImage_vs_SvgImageSource.png
    • Dopes.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • EmailManagerTests.png-dark
    • EmailManagerTests.png
    • GetFocus.png-dark
    • GetFocus.png
    • Attributed_text_FontSize_Changing.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ContentPresenter_NativeEmbedding_Android_FillType.png
    • ElementLevelTheme.png-dark
    • Image_Stretch_Algmnt_Inf_Horizontal.png-dark
    • Image_Stretch_Algmnt_Inf_Horizontal.png
    • ButtonClippingTestsControl.png-dark

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/scroll-smoothness-2 branch from 021913b to cee1b78 Compare August 22, 2026 09:51
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 232300 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Focus_FocusVisual_Properties.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImageIconPage.png-dark
    • Examples.png-dark
    • Examples.png
  • skia-windows-screenshots: 2310 changed over 2404

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png
    • AppBarToggleButtonTest.png
    • ApplicationViewSpanningRectsPage.png
    • AppWindowTitleBar Properties.png-dark
    • ArcSegment.png
    • Attributed_text_FontSize_Changing.png-dark
    • AuthenticationBroker_Demo.png
    • AutoBorderStretchwithbottommargin.png
    • AutoBorderStretchwithtopmargin.png
    • AutomationPropertiesExtensions_Role.png-dark
    • AutoSizedTopLeft.png
    • AutoSuggestBoxChosenSuggestion.png-dark
    • AutoSuggestBox_SoftKeboard.png-dark
    • AutoSuggestBox_SoftKeboard.png
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • BitmapIcon_Sizing.png-dark
    • BitmapIcon_Sizing.png
    • BorderVisualClipping.png-dark
    • BorderVisualClipping.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 232300 has failed on Uno.UI - CI.

MartinZikmund and others added 8 commits September 10, 2026 08:34
SnapshotAndReset reset the region in a finally, so a throw between the
builder's Detach and the reset left the region claiming rects it no longer
held and those pixels stale. The dispatcher logs and swallows what escapes
the render callback, so the app keeps rendering into that hole.

Re-open the region on its accumulated bounds instead, and drop
contributions once disposed: a render callback enqueued before the owning
target unregistered can still reach the region afterwards, where writing
to the freed native paths would be an access violation.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotfVqadqduoPktL3wFznV
Motion driven from CompositionTarget.Rendering is evaluated from a
dispatcher continuation after the frame is recorded, so it writes into the
following frame - a structural frame of latency - and against a raw clock
that wobbles by milliseconds around the presented cadence. A driver whose
position is a function of time turns that wobble into v-dt of position
error, which at scroll speeds is a visible fraction of a frame step.

Add CompositionTarget.FrameStarting, raised once per presented frame from
the tick that precedes it (before layout and before the record), carrying a
timestamp recovered from the median tick interval so every driver in the
frame evaluates against the grid the frames are actually shown on.

Drivers are counted so Compositor.IsAnimating covers them, dropped when
their target unregisters (an unregistered target never presents again, so
the frame that would bring the next tick never comes), and ticked for XAML
islands as well as windows. MainFrameDriverTarget falls back to the primary
XamlRoot so an island host, which has no Window at all, still resolves one.

The macOS host now unregisters its XamlRoot on close, which is what
releases the closed target's frame drivers and pending render jobs.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotfVqadqduoPktL3wFznV
Both inertia handlers ran on a System.Threading.Timer, which wrote
composition state from a thread-pool thread and sampled at its own fixed
17ms rate regardless of the display's - so on a 120Hz panel most frames had
nothing new to show. Advance them from the frame clock instead.

Wheel detents are now fractional: a precision touchpad reports deltas finer
than one 120-unit notch, and the integer division floored every one of them
to zero.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotfVqadqduoPktL3wFznV
Win32 truncated pointer positions to whole logical pixels - and at 150% or
200% that threw away precision the digitizer actually reported - so a slow
drag advanced in steps no matter what the layers above it did. Touch and pen
carry a HIMETRIC position that is ~26x finer than the logical pixel grid;
use it, and keep the whole-pixel screen-to-client translation separate so
the sub-pixel part survives it. Mouse stays on ptPixelLocation, which Win32
reports in integer screen pixels anyway.

X11 truncated the XInput2 sub-pixel position to feed XTranslateCoordinates,
which only takes whole pixels. Translate the floor and re-add the fraction.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotfVqadqduoPktL3wFznV
Scrolling was quantized at three points and none of them belonged on the
scroll path: the manipulation delta threshold held content still until 2px
had accumulated and then jumped by the whole amount, the wheel restarted a
fixed-duration ease per detent so each notch re-injected a large first step
on an arbitrary frame, and touch inertia ran a constant-deceleration
parabola whose distance grew with the square of a launch velocity estimated
from the last two samples.

Replace all three:

- ScrollVelocityTracker fits a quadratic over the recent gesture, so one
  short sample interval no longer sends the content thousands of pixels.
  Parameters match Flutter's VelocityTracker, which Avalonia also mirrors.
- ScrollFlingSimulation is the platform's own curve, closed-form in absolute
  time: Android's OverScroller spline (reproducing getSplineFlingDistance
  exactly, with 96 DIPs per inch substituted for Android's 160 dp) and
  iOS's UIScrollView exponential drag.
- ScrollDecaySimulation gives the wheel exponential decay, which is
  memoryless, so a detent is an impulse added to the running velocity and
  composes exactly with whatever motion is already in flight.

All three are evaluated against the frame clock, so a late or early frame
produces the correct position rather than accumulating error.

Pressing on coasting content stops it: the resume path completes the
manipulation without reporting it, and the manipulation that replaces it
only reports Started once the finger has travelled the 10px start
threshold, so the fling needs an explicit notification to stop under a
finger held still. A fling that runs out, is unloaded, or is pre-empted by
a programmatic scroll now also ends the manipulation the coast was holding,
which otherwise kept a frame driver alive and swallowed presses. A presenter
that never claimed the inertia no longer publishes a final offset for a
scroll it did not perform.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotfVqadqduoPktL3wFznV
- Anchor the wheel decay on its first frame-clock tick instead of a raw
  clock read, so the frame the notch arrives on is not dropped to a
  negative elapsed time. Mirrors what StartFling already did.
- Gate each fling axis on its own curve, so a settled axis stops the
  driver instead of coasting on the other axis's duration.
- Use the UIScrollView curve for a WASM app hosted by an iOS or iPadOS
  browser, resolved once via DeviceTargetHelper.BrowserHost rather than
  per fling.
- Guard the FrameStarting accessors against a null handler, which also
  removes the condition the analyzer read as constant.
- Cover the DamageRegion disposed guard with a runtime test.
- Fall back to a themed-or-gray brush in the benchmark sample rather than
  indexing a resource key that a head may not define.
- Doc and import tidy-ups.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotfVqadqduoPktL3wFznV
Stop() unsubscribes from CompositionTarget.Rendering, whose accessor
asserts UI-thread access, so running it from the finalizer thread throws -
and a throw from a finalizer terminates the process.

It could never have done anything useful either: while a handler is
subscribed the event roots the timer, so the instance only becomes
collectable once Stop() has already run. InertiaProcessor.Dispose() is
what ends the timer deterministically.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotfVqadqduoPktL3wFznV
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/scroll-smoothness-2 branch from 1cee004 to 8dc7d8d Compare September 10, 2026 06:34
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 57s —— View job


Code Review — PR #23987

  • Gather context (confirmed current HEAD 8dc7d8da is byte-for-byte the same diff already reviewed across 10+ prior rounds — git diff --stat origin/master...HEAD matches the PR's stated 41 files / +3318/-231 exactly, file-by-file)
  • Check status of long-standing carry-over findings from prior rounds
  • Review any new/changed code since the last review — none found; this synchronize did not change tracked-file content
  • Post inline comments for new/unresolved findings — none to post
  • Post summary

Overall verdict: ship (pending CI)

This synchronize event did not introduce any code changes relative to what was already reviewed and resolved in the prior round (fix(input): Drop the inertia timer's unsound finalizer). git diff --stat origin/master...HEAD is identical file-for-file and line-for-line to the diff already reviewed. I independently re-verified the three previously-contentious fixes directly against the current file contents rather than trusting prior review replies:

  • Wheel decay time-base (ScrollDecaySimulation.cs:49,57,67-69): Start takes frameIntervalInTicks, leaves _lastTimestampInTicks at a 0 sentinel, and Tick back-dates by one interval on the first call — confirmed present, matching the StartFling/OnFlingFrame pattern.
  • Fling running no-op frames (ScrollContentPresenter.Managed.cs:663): confirmed gated per-axis — (elapsed < _flingH.Duration && h > 0 && h < maxH) || (elapsed < _flingV.Duration && v > 0 && v < maxV).
  • DamageRegion disposed-guard coverage: confirmed When_Region_Is_Disposed_Then_Contributions_Are_Dropped exists in Given_Visual_Damage.cs:488.
  • CompositionInertiaProcessorTimer: confirmed the finalizer is genuinely removed (not just commented out), Stop() unsubscribes via the cached _target/_handler/_renderingHandler fields, and both InteractionTracker inertia handlers have zero remaining Timer references (fully migrated to the frame-clock driver pattern).

Additional independent checks for this pass, beyond re-confirming prior findings:

  • ScrollVelocityTracker.SolveSlope's QR indexing (flagged by Copilot as a possible row/col transposition): traced the indexing by hand. r[j*Terms+i] is filled as R[row=j][col=i] = q_j · a_i in the Gram-Schmidt loop, and read as r[i*Terms+j] = R[row=i][col=j] in back-substitution — both loops use the same [row*Terms+col] convention consistently (only the loop-variable names swap between the two loops, not the indexing semantics). Not a transposition bug.
  • No new .Result/.GetAwaiter().GetResult(), async void, or event Action<T> patterns in the diff.
  • No new DependencyProperty registrations to review.
  • ScrollSmoothnessBenchmark.xaml uses {ThemeResource} for its brushes, consistent with the samples theming convention; XAML Style Check CI is green.

Cross-cutting note (not a code defect)

Recent CI runs show highly volatile skia-windows-screenshots snapshot-diff counts (131 → 2310 → 224 → 2310 across the last several builds) while skia-linux-screenshots stays stable (~57-73). The swing size and the fact that unrelated pages (e.g. Border_CornerRadius_Gradient.png, Grid_def_MinMaxValues.png) appear in the diffs suggests CI/baseline instability on the Windows screenshot runner rather than a rendering regression from this PR's scroll/frame-clock changes — worth a maintainer's separate look at the Windows snapshot pipeline, but out of scope for this code review.
· branch dev/mazi/scroll-smoothness-2

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 232885 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • ContextRequested.png-dark
    • ContextRequested.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Focus_FocusVisual_Properties.png-dark
    • DisplayInformation.png-dark
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImageIconPage.png-dark
  • skia-windows-screenshots: 2310 changed over 2410

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png-dark
    • AppBarButtonTest.png
    • AppBarToggleButtonTest.png
    • AppBar_KeyBoard.png-dark
    • AppBar_KeyBoard.png
    • ApplicationViewMode.png-dark
    • ApplicationViewMode.png
    • AppWindowFeatures.png
    • AppXamlDefinedResources.png-dark
    • AppXamlDefinedResources.png
    • AutoBorderStretchwithbottommargin.png-dark
    • AutoBorderStretchwithbottommargin.png
    • AutomationProperties_Name.png-dark
    • AutomationProperties_Name.png
    • AutoSuggestBox_Description.png
    • AutoSuggestBox_Icons.png-dark
    • BackGesture.png-dark
    • BackGesture.png
    • BasicEnability.png-dark
    • BasicEnability.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

MartinZikmund added a commit that referenced this pull request Sep 25, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Sep 25, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Sep 25, 2026
Salvages the FrameClock tests from #23987 and adds two that fail on the
post-present Rendering raise: a Rendering write must be recorded by the
same tick, and FrameStarting and Rendering must share one frame time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Sep 25, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Oct 3, 2026
Salvages the FrameClock tests from #23987 and adds two that fail on the
post-present Rendering raise: a Rendering write must be recorded by the
same tick, and FrameStarting and Rendering must share one frame time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Oct 3, 2026
Salvages the frame interval test from #23987 and adds two that fail on the
post-present Rendering raise: a Rendering write must be recorded by the
same tick, and FrameStarting and Rendering must share one frame time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Oct 3, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Oct 4, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
ramezgerges pushed a commit to ramezgerges/uno that referenced this pull request Oct 7, 2026
Salvages the frame interval test from unoplatform#23987 and adds two that fail on the
post-present Rendering raise: a Rendering write must be recorded by the
same tick, and FrameStarting and Rendering must share one frame time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Oct 8, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Oct 8, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Oct 8, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Oct 8, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
MartinZikmund added a commit that referenced this pull request Oct 10, 2026
Salvaged from #23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-unoplatform__uno that referenced this pull request Oct 10, 2026
Salvaged from unoplatform#23987. Only the fling distance, unload and notch-in-a-row
tests fail on the previous motion model; the rest guard behaviour the
rework has to keep (a press stops a coast and is swallowed, a wheel
notch mid-fling never steps back, an interrupted fling publishes a final
offset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/x11 🐧 Categorizes an issue or PR as relevant to X11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scroll motion has no frame clock, and touch/wheel deltas are quantized 🩵

5 participants