Skip to content

AI-native design editor. Open-source Figma alternative.

fix: check resize handles before rotation zone on mousedown (fixes #170)

Danila Poyarkovba5e8ce42046
diff --git a/packages/vue/src/shared/input/select.ts b/packages/vue/src/shared/input/select.ts
index f2482cc98..7e43b1258 100644
--- a/packages/vue/src/shared/input/select.ts
+++ b/packages/vue/src/shared/input/select.ts
@@ -368,14 +368,14 @@ export function handleSelectDown(
if (editor.state.editingTextId) editor.commitTextEdit()
- if (tryStartRotation(sx, sy)) return
-
const resizeDrag = tryStartResize(sx, sy, cx, cy, editor)
if (resizeDrag) {
setDrag(resizeDrag)
return
}
+ if (tryStartRotation(sx, sy)) return
+
const hit = resolveHit(cx, cy, editor, fns)
if (!hit) {
if (!editor.state.enteredContainerId) {