diff --git a/packages/system/src/utils/store.ts b/packages/system/src/utils/store.ts index d94a7dff..1bfd029d 100644 --- a/packages/system/src/utils/store.ts +++ b/packages/system/src/utils/store.ts @@ -232,7 +232,7 @@ function calculateChildXYZ( return { x: absolutePosition.x, y: absolutePosition.y, - z: parentZ > childZ ? parentZ : childZ, + z: parentZ >= childZ ? parentZ + 1 : childZ, }; }