Improve grab/rotate/scale handling of pan/tilt/zoom (#2285)

* Fix P and G

* Fix (R, S) x (P, Z)

* Fix (G, Z)

* Fix R overlays

* Fix S overlays

* Fix (G, T)

* Fix last 2 fixes

* Fix mouse issues

* Cleanup

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
mTvare
2025-02-16 10:58:58 +00:00
committed by GitHub
co-authored by Keavon Chambers
parent 4fe3462af5
commit 687744d999
5 changed files with 187 additions and 67 deletions
@@ -1085,7 +1085,7 @@ impl Fsm for SelectToolFsmState {
None,
);
selected.update_transforms(delta);
selected.update_transforms(delta, None);
}
SelectToolFsmState::RotatingBounds
@@ -1189,6 +1189,7 @@ impl Fsm for SelectToolFsmState {
true => DocumentMessage::AbortTransaction,
false => DocumentMessage::EndTransaction,
};
tool_data.axis_align = false;
tool_data.snap_manager.cleanup(responses);
responses.add_front(response);
@@ -1380,6 +1381,7 @@ impl Fsm for SelectToolFsmState {
(SelectToolFsmState::Dragging { .. }, SelectToolMessage::Abort) => {
responses.add(DocumentMessage::AbortTransaction);
tool_data.snap_manager.cleanup(responses);
tool_data.axis_align = false;
responses.add(OverlaysMessage::Draw);
let selection = tool_data.nested_selection_behavior;