The canvas is centred, so on wide screens there is margin to its left
that boxes could not be dragged into: x was clamped to 0 in the drag
geometry, the arrow-key nudge and validateBox. Only y stays clamped.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Drop narration, history and restated-code comments across the repo,
keep short ones for security boundaries, upstream quirks and ordering
constraints, and record the convention in CLAUDE.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dragging a box snaps its edges and centre to other boxes' and to the
canvas's sides, centre and top within 6 screen px, and draws a guide
along each shared line; a resize snaps the dragged edge. The 5px grid
still applies elsewhere. An "Align" button in the edit bar turns it off
(kept per browser), and Ctrl/Cmd mid-drag skips it once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>