penpot/frontend
Serhii Shvets 2b34767b2b 🐛 Fix Alt/Option to draw shapes from center point
Use the Alt/Option key stream (mouse-position-alt) instead of
the Command/Meta stream (mouse-position-mod) so the modifier
is actually detected during shape drawing.

When Alt is held, mirror the mouse point around the initial
click so that the click becomes the center of the drawn shape.
This aligns drawing behavior with resizing (transforms.cljs)
and with other design tools (Figma, Sketch, Illustrator).

Closes #8360

Signed-of-by: Serhii Shvets <justone128@gmail.com>
2026-02-17 11:02:40 +01:00
..
2026-01-22 13:55:41 +01:00
2026-02-10 08:29:24 +01:00
2026-02-10 08:29:24 +01:00
2026-02-13 13:17:08 +01:00
2026-02-17 09:21:09 +01:00
2025-12-23 13:10:58 +01:00
2026-02-10 08:29:24 +01:00
2025-11-05 17:15:19 +01:00