Skip to content

Figma-like editor UX - #61

Merged
aurpelai merged 1 commit into
mainfrom
feat/figma-like-editor-ux
Jun 15, 2026
Merged

aurpelai merged 1 commit into
mainfrom
feat/figma-like-editor-ux

Conversation

@aurpelai

Copy link
Copy Markdown
Owner

Summary

  • Reworks the pixel editor for a Figma-like feel: trackpad pan, ctrl/cmd+wheel zoom-at-cursor, discrete-step zoom tool, glyph drag via the Move tool, space-bar pan override, arrow-key nudge.
  • Canvas grows symmetrically around the cell with viewport-proportional overscan so there's always somewhere to pan, regardless of zoom level.
  • Toolbar: undo/redo buttons, brush-size stepper, zoom controls (− value + 100% fit grid), reordered into logical clusters.
  • Fixes undo snapshots to carry width/height so paint-grown buffers restore correctly.
  • Help overlay gains a Navigation section documenting the new gestures.

Test plan

  • Open a glyph: the cell is centered in the viewport
  • Two-finger trackpad scroll pans; ctrl/cmd+wheel (or pinch) zooms toward the cursor
  • Z tool: click zooms in at cursor, Alt+click zooms out
  • Shift+1 → 100% zoom and recenter; Shift+0 → zoom-to-fit and recenter
  • Move tool: hover over glyph shows 1-cell-padded outline; drag repositions; drag outside pans
  • Space bar temporarily activates Move
  • Arrow keys nudge xoffset/yoffset 1px under Move tool (each press is its own undo step)
  • Undo/Redo toolbar buttons + Cmd+Z / Cmd+Shift+Z work
  • Paint to grow the rect, undo: buffer restores without scrambling
  • Toolbar ordering: Undo Redo | Pencil Eraser [brush] | Move Zoom [− zoom + 100% fit grid] | α slider | atlas preview
  • Zoom display rounds to one decimal place

🤖 Generated with Claude Code

Rework the pixel editor to feel like Figma: trackpad pan, ctrl/cmd+wheel
zoom-at-cursor (also trackpad pinch), discrete-step zoom tool, glyph drag
via the Move tool, space-bar pan override, and arrow-key nudge.

- Canvas grows symmetrically around the cell with viewport-proportional
  overscan so there is always somewhere to pan, regardless of zoom.
- Inline-flex wrapper lets the scroll container measure the canvas's
  intrinsic width; previously the wrapper squashed it, breaking centering
  and pointer-to-cell mapping.
- Recenter the cell on glyph change, zoom-to-fit (Shift+0), and
  zoom-to-100% (Shift+1).
- Move-tool grab outline marks the full grab region (1 cell of slack).
- Toolbar: undo/redo buttons, brush-size stepper, zoom controls
  (− value + 100% fit grid), reordered into logical clusters.
- Undo snapshots now carry width/height so paint-grown buffers restore
  correctly.
- Help overlay gains a Navigation section documenting the new gestures.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aurpelai
aurpelai merged commit 25409dd into main Jun 15, 2026
1 check passed
@aurpelai
aurpelai deleted the feat/figma-like-editor-ux branch June 15, 2026 17:56
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