Fix fast drag with path tool eating handles (#763)

* Fix fast drag with path tool eating handles

* Remove extra space

* Import ordering

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2022-08-27 18:19:20 -07:00
committed by GitHub
co-authored by Keavon Chambers
parent 3c2bc04c3c
commit cac92ad9a2
8 changed files with 18 additions and 31 deletions
@@ -260,7 +260,7 @@ impl Fsm for PathToolFsmState {
// Move the selected points by the mouse position
let snapped_position = tool_data.snap_manager.snap_position(responses, document, input.mouse.position);
tool_data.shape_editor.move_selected_points(snapped_position - tool_data.drag_start_pos, snapped_position, responses);
tool_data.shape_editor.move_selected_points(snapped_position - tool_data.drag_start_pos, responses);
tool_data.drag_start_pos = snapped_position;
PathToolFsmState::Dragging
}