Repository: GraphiteEditor/Graphite (language: rust)

Issue:
In the Path tool, selected points shouldn't be draggable from anywhere inside the shape
To reproduce:
- Draw a shape
- Select the path tool
- Select one vertex/anchor
- Drag the middle of the shape

https://github.com/user-attachments/assets/3340a4c8-b466-4a7c-b3d6-4615fb4b0b4d

It is a bit weird how the single selected anchor is dragged. Probably all of the anchors should be selected and dragged.


Discussion / hints:
Is anyone working on this issue ? If not can i work on this issue?
@prathmesh703 nobody is currently working on this currently. We can assign you when you open a draft PR.

Fix patch:
diff --git a/editor/src/messages/tool/tool_messages/path_tool.rs b/editor/src/messages/tool/tool_messages/path_tool.rs
index e91ade16d9..70948a0bb1 100644
--- a/editor/src/messages/tool/tool_messages/path_tool.rs
+++ b/editor/src/messages/tool/tool_messages/path_tool.rs
@@ -453,6 +453,7 @@ impl PathToolData {
 		}
 		// We didn't find a segment path, so consider selecting the nearest shape instead
 		else if let Some(layer) = document.click(input) {
+			shape_editor.deselect_all_points();
 			if extend_selection {
 				responses.add(NodeGraphMessage::SelectedNodesAdd { nodes: vec![layer.to_node()] });
 			} else {


Test patch: