fix(nodes): use correct zindex on selection

This commit is contained in:
bcakmakoglu
2022-06-23 19:13:50 +02:00
committed by Braks
parent 78e15b23f3
commit 4e431a17b6
@@ -111,7 +111,7 @@ onMounted(() => {
const xyzPos = {
x: newX,
y: newY,
z: node.computedPosition.z ? node.computedPosition.z : node.selected ? 1000 : 0,
z: node.selected ? 1000 : 0,
}
updatePosition(xyzPos, parentX && parentY ? { x: parentX, y: parentY, z: parentZ! } : undefined)