Skip to content

Fix: corner-resize escapes its stage on tablets#31

Merged
YamadaBlog merged 1 commit into
mainfrom
fix/stage-resize-clamp
Jun 12, 2026
Merged

Fix: corner-resize escapes its stage on tablets#31
YamadaBlog merged 1 commit into
mainfrom
fix/stage-resize-clamp

Conversation

@YamadaBlog

Copy link
Copy Markdown
Owner

Reproduced: grip-drag on 768px tablet pushed the player +20px past the stage / +10px past the viewport (720px ceiling not container-clamped). The lib is container-aware, so a CSS max-width: 100% on .drag-stage/.resize-stage .mp caps the drag-written inline width at every breakpoint. Scripted grip-drags at 390/768/1500: zero overflow, chrome intact.

Validation: 88/88 · visual 2/2 · responsive 6/6 · Axe AA 2/2 · fmt/lint 0

🤖 Generated with Claude Code

User report : resize/drag stages 'depassent de la page'. Reproduced
on a 768px tablet : dragging the corner grip pushed the player to its
720px ceiling regardless of container — +20px past the stage card,
+10px past the viewport (worse on narrower tablets). The lib chrome
is container-aware (ResizeObserver), so a CSS max-width cleanly caps
the inline width the drag writes ; the old clamp only covered <=720px
viewports. Verified by scripted grip-drags at 390/768/1500 : tablet
720 -> 622 (inside the stage), zero page overflow anywhere, chrome
intact at max size (screenshot).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@YamadaBlog YamadaBlog merged commit d793a29 into main Jun 12, 2026
10 checks passed
@YamadaBlog YamadaBlog deleted the fix/stage-resize-clamp branch June 12, 2026 14:51
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