Commit viewport flight focus at start
This commit is contained in:
parent
851f43d3d3
commit
1301a43948
1 changed files with 7 additions and 2 deletions
|
|
@ -225,8 +225,6 @@ export function EpiphanyGraphViewer({
|
|||
? selection.nodeId
|
||||
: null;
|
||||
if (focusSelection && selectedNodeId) {
|
||||
dynamicLayoutRef.current = layouts;
|
||||
setDynamicLayouts(layouts);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -553,6 +551,13 @@ export function EpiphanyGraphViewer({
|
|||
? focusedNodeRef.current.node
|
||||
: selectedNode;
|
||||
|
||||
commitViewportFocusSelection(
|
||||
focusedSelection,
|
||||
targetNode,
|
||||
focusedNodeRef,
|
||||
updateSelection,
|
||||
);
|
||||
|
||||
startViewportFlight(
|
||||
{
|
||||
graphKey: activeGraphKey,
|
||||
|
|
|
|||
Loading…
Reference in a new issue