Repository navigation
The button rings: no chip swells to full size while panning - #140
Merged
Merged
Conversation
A chip coming back round from the far end was shown at full size before its scale was written, and its transform transition grew it to full size and shrank it again while the ring was panned. Hidden chips are now taken at the widest chip's width, a chip's size is written before it is shown, and a culled chip keeps a small size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014hCELqa1Wq59Y67k57PZCD
reportbase
marked this pull request as ready for review
November 27, 2026 02:59
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.
Tom (27 Nov 2026): "why to the icons all expand to full size when panning."
Why
makeRing's layout, as merged in #138, showed every chip and set its scale to 1 before reading the widths. A chip's transform eases (button.icon-btn, 80 ms). A chip coming back round from the far end had been hidden, so the width read made the browser apply that 1 before the chip's real scale was written. The chip then grew to full size and shrank again on the way in. On a phone, a touch drag showed a far chip at 52 px, full size, mid-pan.The fix
offsetWidth.--ring-s0.15, so it comes back small.Checks
tests/editor.mjs: the phone top-bar, strip-holds and centred-row checks pass.This is independent of #139, the shape browser, whose tiles have no transition.
Generated by Claude Code