We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68fd565 commit 26d3876Copy full SHA for 26d3876
1 file changed
editor/src/messages/tool/tool_messages/path_tool.rs
@@ -1889,7 +1889,7 @@ impl Fsm for PathToolFsmState {
1889
selection_mode => selection_mode,
1890
};
1891
1892
- if (tool_data.drag_start_pos - previous_mouse).element_sum() < 1e-8 {
+ if tool_data.drag_start_pos.distance(previous_mouse) < 1e-8 {
1893
// If click happens inside of a shape then don't set selected nodes to empty
1894
if document.click(&input).is_none() {
1895
responses.add(NodeGraphMessage::SelectedNodesSet { nodes: vec![] });
0 commit comments