Commit viewport flight focus at start

This commit is contained in:
Meta Vens 2026-05-23 23:19:38 +01:00
commit 1301a43948

View file

@ -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,