ensure only selected elems can be resized (fixes #256)

This commit is contained in:
dwelle 2020-01-08 18:06:04 +01:00
parent 009412a093
commit 08b804ac63

View File

@ -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);