Virtual whiteboard for sketching hand-drawn like diagrams
fix: disable locking aspect ratio for box-selection (#5525)
David Luzar501397cb6186
diff --git a/src/element/dragElements.ts b/src/element/dragElements.tsindex e4583e4a0b..56296e464d 100644--- a/src/element/dragElements.ts+++ b/src/element/dragElements.ts@@ -105,7 +105,7 @@ export const dragNewElement = (true */widthAspectRatio?: number | null,) => {- if (shouldMaintainAspectRatio) {+ if (shouldMaintainAspectRatio && draggingElement.type !== "selection") {if (widthAspectRatio) {height = width / widthAspectRatio;} else {