mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Do not allow resizing unbound elbow arrows either (#8333)
* Fix resizing of unbound elbow arrows
This commit is contained in:
parent
232242d2e9
commit
72d6ee48fc
3 changed files with 7 additions and 10 deletions
|
@ -9660,7 +9660,12 @@ class App extends React.Component<AppProps, AppState> {
|
|||
|
||||
const transformHandleType = pointerDownState.resize.handleType;
|
||||
|
||||
if (selectedFrames.length > 0 && transformHandleType === "rotation") {
|
||||
if (
|
||||
// Frames cannot be rotated.
|
||||
(selectedFrames.length > 0 && transformHandleType === "rotation") ||
|
||||
// Elbow arrows cannot be transformed (resized or rotated).
|
||||
(selectedElements.length === 1 && isElbowArrow(selectedElements[0]))
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue