refactor(nodes): use opacity for hiding nodes on start
This commit is contained in:
@@ -283,7 +283,7 @@ export default (NodeComponent: ComponentType<NodeComponentProps>) => {
|
|||||||
zIndex: selected ? 10 : 3,
|
zIndex: selected ? 10 : 3,
|
||||||
transform: `translate(${xPos}px,${yPos}px)`,
|
transform: `translate(${xPos}px,${yPos}px)`,
|
||||||
pointerEvents: isSelectable || isDraggable || onClick ? 'all' : 'none',
|
pointerEvents: isSelectable || isDraggable || onClick ? 'all' : 'none',
|
||||||
visibility: isInitialized ? 'visible' : 'hidden',
|
opacity: isInitialized ? 1 : 0, // prevents jumping of nodes on start
|
||||||
...style,
|
...style,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user