Allow cancellation of pivot drag in Select tool (#1658)

* Add Abort to SelectToolFsmState::DragginPivot state

* Remove trailing whitespace (rustfmt error)
This commit is contained in:
milan-sedivy 2024-03-09 10:22:20 +02:00 committed by GitHub
parent 69c6f44373
commit 4cbba3d92b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -591,6 +591,11 @@ impl Fsm for SelectToolFsmState {
state
}
(SelectToolFsmState::DraggingPivot, SelectToolMessage::Abort) => {
responses.add(DocumentMessage::AbortTransaction);
SelectToolFsmState::Ready
}
(SelectToolFsmState::Dragging, SelectToolMessage::PointerMove(modifier_keys)) => {
tool_data.has_dragged = true;