revert changes to internal z-index handling

This commit is contained in:
peterkogo
2025-04-29 20:17:21 +02:00
parent 472ef21c62
commit 0aded87f0c
+1 -1
View File
@@ -195,7 +195,7 @@ function updateChildNode<NodeType extends NodeBase>(
}); });
} }
} }
``;
function calculateZ(node: NodeBase, selectedNodeZ: number) { function calculateZ(node: NodeBase, selectedNodeZ: number) {
return (isNumeric(node.zIndex) ? node.zIndex : 0) + (node.selected ? selectedNodeZ : 0); return (isNumeric(node.zIndex) ? node.zIndex : 0) + (node.selected ? selectedNodeZ : 0);
} }