mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-25 19:17:06 -06:00
While a text box or placeholder is being edited, every press inside its box placed the caret, so the box could not be moved without leaving editing first. Like PowerPoint, a band on either side of the box edge (the hit tolerance wide, in the shape's rotated frame) is now its frame: hit_test reports Hit::Frame there, the canvas shows the move cursor, and a press leaves text editing, selects the box and drags it as one undo step. A click without a drag just selects the whole box. Inside the box the caret and text selection work as before; resize and adjust handles still win. The text-click zone now follows the rotated box instead of its axis-aligned bounds.