fix: disable locking aspect ratio for box-selection (#5525)
This commit is contained in:
parent
865d29388c
commit
501397cb61
@ -105,7 +105,7 @@ export const dragNewElement = (
|
|||||||
true */
|
true */
|
||||||
widthAspectRatio?: number | null,
|
widthAspectRatio?: number | null,
|
||||||
) => {
|
) => {
|
||||||
if (shouldMaintainAspectRatio) {
|
if (shouldMaintainAspectRatio && draggingElement.type !== "selection") {
|
||||||
if (widthAspectRatio) {
|
if (widthAspectRatio) {
|
||||||
height = width / widthAspectRatio;
|
height = width / widthAspectRatio;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user