mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 10:28:12 +08:00
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:
co-authored by
Keavon Chambers
parent
4fe3462af5
commit
687744d999
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user