Repository navigation
fix(web): smooth composer folding during scroll - #1411
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 28, 2026 09:12
nixuuu
added a commit
that referenced
this pull request
Nov 28, 2026
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 - Exercised slow scrolling, a pause inside the end zone, full wheel flicks and rapid reversals on the actual thread page in Chromium at 1200 and 390 px. Sampled heights decelerated towards the endpoint. The toolbar stayed within the surface and the feed reserve stayed constant. - At half height, the toolbar was at 3% opacity and 1.94 px blur in both viewport sizes. Reduced motion switched directly between endpoint heights without blur. - Verified that scrolling, focusing and jumping to latest preserve a multiline draft. Local web typecheck, targeted lint, formatting and diff checks passed. Full repository checks run 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.
Slow scrolling let the toolbar drift below the composer and made the shortcut hint add a whole line when reopening. A large wheel delta could switch the composer from 150 to 52 px in one frame.
The toolbar now stays aligned with the primary action, and the shortcut hint folds with the editor. The fold tracks small scroll deltas and limits how far a large delta can move it per frame. Reversing a gesture continues from the current geometry. Pausing completes the nearer endpoint and scrolling back resumes from the distance where the composer folded.
Fixes: #756
Verification