Explorar o código

fix: disable locking aspect ratio for box-selection (#5525)

David Luzar %!s(int64=2) %!d(string=hai) anos
pai
achega
501397cb61
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/element/dragElements.ts

+ 1 - 1
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 {