From 55b89600d30eda68995594d80c1989d149842cbd Mon Sep 17 00:00:00 2001 From: Annonnymmousss Date: Mon, 23 Feb 2026 23:03:40 +0530 Subject: [PATCH] fix : Path tool box selection creates small square upon mousedown when animation is playing --- editor/src/messages/tool/tool_messages/path_tool.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/src/messages/tool/tool_messages/path_tool.rs b/editor/src/messages/tool/tool_messages/path_tool.rs index 99d08acb50..797220c095 100644 --- a/editor/src/messages/tool/tool_messages/path_tool.rs +++ b/editor/src/messages/tool/tool_messages/path_tool.rs @@ -1888,6 +1888,11 @@ impl Fsm for PathToolFsmState { } } Self::Drawing { selection_shape } => { + let previous_mouse = document.metadata().document_to_viewport.transform_point2(tool_data.previous_mouse_position); + if tool_data.drag_start_pos.distance(previous_mouse) < 1e-8 { + return self; + } + let mut fill_color = graphene_std::Color::from_rgb_str(COLOR_OVERLAY_BLUE.strip_prefix('#').unwrap()) .unwrap() .with_alpha(0.05)