mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
ensure only selected elems can be resized (fixes #256)
This commit is contained in:
parent
009412a093
commit
08b804ac63
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export function resizeTest(
|
||||||
y: number,
|
y: number,
|
||||||
sceneState: SceneState
|
sceneState: SceneState
|
||||||
): HandlerRectanglesRet | false {
|
): HandlerRectanglesRet | false {
|
||||||
if (element.type === "text") return false;
|
if (!element.isSelected || element.type === "text") return false;
|
||||||
|
|
||||||
const handlers = handlerRectangles(element, sceneState);
|
const handlers = handlerRectangles(element, sceneState);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue