mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-30 04:37:29 -06:00
The reference app keeps the inner radius of a star constant when Ctrl or Command is held after the drag starts. VectorCraft's Star tool took the held radius from the first drag event that carried the key, using that event's outer radius. The canvas sends a drag only once the pointer moves, so a key pressed with the pointer still scaled the inner radius with the next move before holding it. Ctrl/Cmd now holds the inner radius the star showed at the last drag position before the key went down, with Alt's straight shoulders when Alt was held. A new press and Escape clear the held radius. Before, after a drag canceled with Escape, the next star took the canceled star's inner radius when Ctrl/Cmd went down before that star's first drag event. Docs: docs/target-app-parity.md.