Skip to content

fix(build): keep the swipe divider crisp at any zoom - #2433

Merged
jsfez merged 1 commit into
mainfrom
fix/swipe-divider-zoom
Aug 5, 2026
Merged

fix(build): keep the swipe divider crisp at any zoom#2433
jsfez merged 1 commit into
mainfrom
fix/swipe-divider-zoom

Conversation

@jsfez

@jsfez jsfez commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The swipe divider was drawn in image space, so every length was divided by the zoom — and layout quantizes those tiny lengths before scaling them back up, which thickened the bar and distorted the chevrons once zoomed in. It now lives in the pane's screen space, where lengths are plain pixels and only the position goes through the transform. The handle disc is replaced by two chevrons flanking the bar, so nothing covers the pixels being compared. Zooming with the wheel over the divider now zooms the screenshot instead of the whole page: the class that marks an overlay as swallowing drags is split from the one that marks it as handling the wheel itself.

🤖 Generated with Claude Code

Draw the divider in the pane's screen space instead of over the image:
sizing it in image space meant dividing every length by the zoom, and
layout quantizes those tiny lengths before scaling them back up, which
thickened the bar and distorted the chevrons once zoomed in. Drop the
handle disc for two chevrons flanking the bar, and let the wheel zoom
the screenshot over them rather than the page.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@argos-ci

argos-ci Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
argos/default (Inspect) 👍 Approved by Jeremy SFEZ 4 changed, 1 ignored Aug 5, 2026, 9:01 AM
storybook/default (Inspect) 👍 Approved by Jeremy SFEZ 1 changed Aug 5, 2026, 9:00 AM
Deployment Status Branch Updated (UTC)
storybook/preview (Open) Ready fix/swipe-divider-zoom Aug 5, 2026, 8:59 AM

@jsfez
jsfez requested a review from gregberge August 5, 2026 09:47
@jsfez
jsfez merged commit befb961 into main Aug 5, 2026
17 checks passed
@jsfez
jsfez deleted the fix/swipe-divider-zoom branch August 5, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant