让节点拖动与缩放用同一套树/尺寸判据
useNodeTransformInteraction.ts 的 onNodePointerDown 补上 !tree || !logicalSize 守卫,与 onNodeResizePointerDown 一致:命中不到树或逻辑尺寸时不再启动手势并占用指针捕获
This commit is contained in:
+2
@@ -248,6 +248,8 @@ export function useNodeTransformInteraction({
|
||||
event.button !== 0 ||
|
||||
spaceHeld ||
|
||||
!treeId ||
|
||||
!tree ||
|
||||
!logicalSize ||
|
||||
node.id === tree?.root.id ||
|
||||
!isFiniteTransform(node.layout.transform)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user