mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
In a rotated view the resize and rotate cursors were the ones for an unturned view. With the view turned 90°, the right-middle handle of a selection's bounding box shows at the middle of the box's bottom edge and drags up and down, but its cursor was the left-right arrow. This affected the Selection, Free Transform, Artboard, Slice Selection, Crop Image, Perspective Grid and Perspective Selection tools, ruler guides, and the spread handle of a freeform gradient. Now each of these cursors turns with the view to the nearest 45°. The Selection tool and the Perspective Selection tool turn the handle's direction by the view's angle before they round it to a cursor. ToolContext::view_angle reads the view's angle from the screen frame, and Cursor::turned turns a resize or rotate cursor by it. The new Cursor::rotate_about_in_view turns the pointer's direction from the center by the view before it picks one of the rotate cursor's eight directions. Cursor::rotate_about keeps its signature and behavior. At 0° every cursor is as it was. Docs: docs/target-app-parity.md.