Commit navigation focus through viewport authority
This commit is contained in:
parent
5cdef97f20
commit
536aec8bf6
1 changed files with 8 additions and 3 deletions
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue