mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
* Single Row / Column Marquee: a drag from inside the selection moves it (#11392) `selection_drag_kind` lists the Single Row and Single Column Marquee with the other marquees, so a plain drag that starts inside the selection moves the outline (one step, as the Rectangular Marquee's move) instead of replacing it with one new line. A click inside without moving still selects a line (`finish_gesture`), never deselects, and snaps it as a click outside the selection does (`snap_ui::snap_click`: guides, grid, layers and document bounds, not the selection's own edges, which would pick the line beside a 1 px one). A click on a floating piece drops it where it is first, then selects the line. ⇧ / ⌥ and drags from outside are unchanged. A selection drag is a click only when the pointer, before snapping, never left the press by half a pixel or more (`Drag::left_press`, `selection_release`); a click ends where it was pressed, unsnapped, as with snapping off. With View › Snap on, a click inside a selection whose edge sat within reach of a guide or the canvas edge moved it onto that edge instead of selecting the line (or, with the Rectangular and Elliptical Marquee, deselecting). `tool_input` passes the classification on (`finish_release`), so a drag that snapping pulls back to where it started, or that comes back there, leaves the selection as it was instead of taking the click's path. Fixes #11392 Co-Authored-By: Claude Opus 5.5 <[email protected]> * Selection drags: judge a press inside the selection before snapping (#11392) The press handler asked `selection_drag_kind` about the snapped press point. With View › Snap on, a press just outside a selected row snapped onto the row's edge and counted as inside, so a Single Row / Column Marquee drag from there moved the selection instead of selecting a new line. It now asks about the press as it was, as `snap_ui::begin` does when it picks the drag's snapping. The Move tool's click shortcut also needs the pointer never to have left the press (`Drag::left_press`): a drag that snapping held at the press point and that came back there dropped a floating piece. A drag that ends unmoved without being a click now clears the floating piece's move preview, which nothing else releases on that path. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: FredApps <[email protected]>