refactor(nodes): use opacity for hiding nodes on start

This commit is contained in:
moklick
2020-08-20 14:54:23 +02:00
parent 58b0d88208
commit ae623be738
+1 -1
View File
@@ -283,7 +283,7 @@ export default (NodeComponent: ComponentType<NodeComponentProps>) => {
zIndex: selected ? 10 : 3,
transform: `translate(${xPos}px,${yPos}px)`,
pointerEvents: isSelectable || isDraggable || onClick ? 'all' : 'none',
visibility: isInitialized ? 'visible' : 'hidden',
opacity: isInitialized ? 1 : 0, // prevents jumping of nodes on start
...style,
};