From 536aec8bf67f47267fe7ddbbd73b6282c18e7421 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 23 May 2026 17:50:46 +0100 Subject: [PATCH] Commit navigation focus through viewport authority --- .../src/lib/EpiphanyGraphViewer.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx b/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx index 5d1c123..77acfb1 100644 --- a/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx +++ b/web/epiphany-graph-viewer/src/lib/EpiphanyGraphViewer.tsx @@ -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); },