Commit navigation focus through viewport authority

This commit is contained in:
Meta Vens 2026-05-23 17:50:46 +01:00
commit 536aec8bf6

View file

@ -528,9 +528,14 @@ export function EpiphanyGraphViewer({
viewportFlightRef,
setTransforms,
() => {
focusedNodeRef.current = { graphKey: activeGraphKey, node: targetNode };
focusedSelectionKeyRef.current = navigationKey;
skipSelectionFocusRef.current = navigationKey;
commitViewportFocusSelection(
navigationSelection,
targetNode,
skipSelectionFocusRef,
focusedSelectionKeyRef,
focusedNodeRef,
updateSelection,
);
activeNavigationKeyRef.current = null;
onNavigationComplete?.(navigationSelection);
},