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

pull/5533/head
David Luzar 3 years ago committed by GitHub
parent 865d29388c
commit 501397cb61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -105,7 +105,7 @@ export const dragNewElement = (
true */
widthAspectRatio?: number | null,
) => {
if (shouldMaintainAspectRatio) {
if (shouldMaintainAspectRatio && draggingElement.type !== "selection") {
if (widthAspectRatio) {
height = width / widthAspectRatio;
} else {

Loading…
Cancel
Save