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

This commit is contained in:
David Luzar 2022-08-02 15:40:17 +02:00 committed by GitHub
parent 865d29388c
commit 501397cb61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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