From d7f3790fce60d436003ae645315fdbaabe71c916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Thu, 24 Sep 2026 16:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9=E8=8A=82=E7=82=B9=E6=8B=96=E5=8A=A8?= =?UTF-8?q?=E4=B8=8E=E7=BC=A9=E6=94=BE=E7=94=A8=E5=90=8C=E4=B8=80=E5=A5=97?= =?UTF-8?q?=E6=A0=91/=E5=B0=BA=E5=AF=B8=E5=88=A4=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit useNodeTransformInteraction.ts 的 onNodePointerDown 补上 !tree || !logicalSize 守卫,与 onNodeResizePointerDown 一致:命中不到树或逻辑尺寸时不再启动手势并占用指针捕获 --- .../ui-editor/components/preview/useNodeTransformInteraction.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/useNodeTransformInteraction.ts b/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/useNodeTransformInteraction.ts index b619f6c01..f3b75413c 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/useNodeTransformInteraction.ts +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/useNodeTransformInteraction.ts @@ -248,6 +248,8 @@ export function useNodeTransformInteraction({ event.button !== 0 || spaceHeld || !treeId || + !tree || + !logicalSize || node.id === tree?.root.id || !isFiniteTransform(node.layout.transform) ) {