Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: Point duplication in LEE on ALT+click (#8347)

Márk Tolmács84398a7e5ccb
diff --git a/packages/excalidraw/element/linearElementEditor.ts b/packages/excalidraw/element/linearElementEditor.ts
index c071b68f93..c7a7361e4a 100644
--- a/packages/excalidraw/element/linearElementEditor.ts
+++ b/packages/excalidraw/element/linearElementEditor.ts
@@ -741,7 +741,7 @@ export class LinearElementEditor {
}
if (event.altKey && appState.editingLinearElement) {
if (
- linearElementEditor.lastUncommittedPoint == null ||
+ linearElementEditor.lastUncommittedPoint == null &&
!isElbowArrow(element)
) {
mutateElement(element, {