refactor(nodes): only update position on mount
This commit is contained in:
@@ -95,7 +95,14 @@ onUpdateNodeInternals((updateIds) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
updateInternals()
|
updatePosition(
|
||||||
|
{
|
||||||
|
x: node.position.x,
|
||||||
|
y: node.position.y,
|
||||||
|
z: node.computedPosition.z ? node.computedPosition.z : node.selected ? 1000 : 0,
|
||||||
|
},
|
||||||
|
parentNode ? { ...parentNode.computedPosition } : undefined,
|
||||||
|
)
|
||||||
|
|
||||||
if (!scope) scope = effectScope()
|
if (!scope) scope = effectScope()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user