do not resize when in crop mode

This commit is contained in:
Ryan Di 2024-09-25 15:48:10 +08:00
parent afdf38e47c
commit 9e80c9e3dd

View file

@ -10048,7 +10048,9 @@ class App extends React.Component<AppProps, AppState> {
// Frames cannot be rotated. // Frames cannot be rotated.
(selectedFrames.length > 0 && transformHandleType === "rotation") || (selectedFrames.length > 0 && transformHandleType === "rotation") ||
// Elbow arrows cannot be transformed (resized or rotated). // Elbow arrows cannot be transformed (resized or rotated).
(selectedElements.length === 1 && isElbowArrow(selectedElements[0])) (selectedElements.length === 1 && isElbowArrow(selectedElements[0])) ||
// Do not resize when in crop mode
this.state.croppingElement
) { ) {
return false; return false;
} }