Repository navigation
fix(web): ease the composer into its scroll position - #1414
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 28, 2026 09:23
nixuuu
added a commit
that referenced
this pull request
Nov 28, 2026
Slow wheel input could leave the composer at its previous height for the first frame of each short tween. Updating the footer edge also invalidated inherited styles throughout the virtual feed. The composer now applies travel that fits in one 120 Hz frame on its first paint, and only the backdrop, scrollbar gutter fade and footer actions inherit the moving edge. Fixes: #1414 ## Frame measurements Sampled production builds in Electron 45.4.1 on Linux with a local gateway, a 14-turn thread, a 1200 × 820 viewport and software offscreen rendering. Counted offscreen paint deliveries, native scroll events and composer surface size changes independently. Each workload ran twice at each refresh setting with 3.5 s of measured movement per run after warm-up. | Setting and gesture | Paints/s before | Paints/s after | Composer height changes/s before | Composer height changes/s after | | --- | ---: | ---: | ---: | ---: | | 60 Hz, slow wheel | 52.7–59.8 | 60.0 | 26.5–29.7 | 57.4–58.0 | | 60 Hz, rapid reversals | 59.8–60.1 | 59.5–60.1 | 58.8–60.0 | 59.3–59.8 | | 120 Hz, slow wheel | 83.5–92.3 | 110.7–111.7 | 45.8–49.7 | 103.5–107.2 | | 120 Hz, rapid reversals | 113.2–113.4 | 117.5 | 96.8–104.8 | 116.6–117.1 | The continuous wheel delivered 104–108 scroll events/s at 120 Hz after the change. The 95th-percentile paint interval was 14.4–14.8 ms for slow input and 11.4–11.7 ms for reversals, with an isolated 64.5 ms gap. These runs measured software output on the worker. Physical display presentation was unavailable. In separate matched slow-scroll traces at 120 Hz, the largest style update visited 14 elements, down from 1,035. ## Other verification - Chromium at 1200 and 390 px checked slow scrolling, reversals, reduced motion, focus, draft retention, Jump to latest and its 8 px clearance. Checked both backdrop gradients, their bottom alignment and the scrollbar gutter width. - Production web build, web typecheck, targeted lint, formatting and diff checks passed locally. Repository-wide verification runs in CI.
This was referenced Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The thread composer previously travelled at a fixed speed and stopped abruptly when it reached the scroll position. Toolbar labels stayed visible while their row was being clipped.
The composer now eases into the target using the shared surface motion curve. The duration scales with the distance left to travel, so small scroll deltas track the gesture. Reversing starts at the last painted height. The toolbar, metadata and shortcut hint dissolve in place with a 2 px blur and sharpen as the composer reopens. The editor and primary action stay sharp throughout.
Fixes: #1411
Verification