mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-28 03:47:00 -06:00
Move tool: Shift locks the drag to the dominant axis (re-evaluated with hysteresis, so moving far enough the other way switches it); Alt at drag start duplicates the selected layers once the pointer moves and moves the copies, folded into one "Duplicate + Move" history step; arrow keys nudge 1/10 px (Alt duplicates first) and nudge the Free Transform box. All in a new move_mods module with two one-line hooks in canvas::tool_event. Free Transform: Shift on the body locks to 8 directions, Alt-click moves the reference point, Cmd on an edge skews (Shift: along the edge, Alt: about the centre), Cmd+Alt+Shift on a corner = perspective. Preview (#91): the moving pixels were sampled down to 2048 px (nearest decimation) and drawn bilinear, so a 24 MP layer previewed at 1/3 resolution. Now uploaded at full resolution (up to the device limit, box filtered beyond), with a lazily built box-filtered mip chain for zoomed-out views and nearest filtering at >= 200% (or Nearest Neighbor interpolation). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>