mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 20:01:07 +01:00
A command run from a panel, a menu or an automation client while a tool drag was open ran inside the drag. With Real-time Drawing on, the drag's next move put the document back to where the drag began and dropped the command's edit, and Escape dropped it too. With Real-time Drawing off, the release lost what the drag drew or moved. Such a command now runs on the document without the drag's preview and records its own undo step and journal entry. The drag then continues from the command's result: with Real-time Drawing on, its preview is applied again at once. The release records the drag's step after the command's, Undo takes back the drag first and the command next, and Escape cancels only the drag. The drag acts on the objects it started with, so a selection the command makes does not change what it moves, and the fill and stroke proxies keep showing those objects' paints. Objects the command deletes, hides or locks are left out of the drag. A change the command makes to the current layer or to the new-art paints stays when the drag ends or is canceled. When the command deletes the art being dragged, the drag records no step. A warning or an error from the preview applied again goes to the command's result. Commands that already kept the drag as a step first still do (Undo, Redo, command.batch, swatch.renameGroup, edit.newDocumentFromState and the others that call settle_interaction). Typing in progress is still kept as a step of its own first. A command run during a Quick Pen press, object.transform with copy during an Alt-drag, and a command run during a dialog's or a panel's preview still run inside the interaction. Docs: docs/mcp.md (undo / redo row), docs/target-app-parity.md.