From 975aa686cca984dddf944c10f9c1e90210f1c611 Mon Sep 17 00:00:00 2001 From: ritk20 Date: Fri, 4 Oct 2024 04:02:50 +0530 Subject: [PATCH] Duplication of element while dragging issue fixed --- packages/excalidraw/components/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx index 8a976dd8b..3bf8ae6bf 100644 --- a/packages/excalidraw/components/App.tsx +++ b/packages/excalidraw/components/App.tsx @@ -7889,7 +7889,7 @@ class App extends React.Component { } // We duplicate the selected element if alt is pressed on pointer move - if (event.altKey && !pointerDownState.hit.hasBeenDuplicated) { + if (event.altKey && !pointerDownState.hit.hasBeenDuplicated && !this.state.selectedElementsAreBeingDragged) { // Move the currently selected elements to the top of the z index stack, and // put the duplicates where the selected elements used to be. // (the origin point where the dragging started)