MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / scrollIntoView

Function scrollIntoView

graph-ui/src/pseudocode/FlowOverlay.tsx:752–758  ·  view source on GitHub ↗

* Den aktiven Schritt in Sicht holen. * * Als ref-Rueckruf und nicht als Effekt, weil er an genau dem einen Element * haengt, das ihn braucht. `nearest`, damit eine Liste, die den Schritt schon * zeigt, nicht unter dem Auge des Lesers springt.

(node: HTMLLIElement | null)

Source from the content-addressed store, hash-verified

750 * zeigt, nicht unter dem Auge des Lesers springt.
751 */
752function scrollIntoView(node: HTMLLIElement | null): void {
753 // jsdom kennt scrollIntoView nicht, und das ist kein Grund, es dort
754 // unterzuschieben.
755 if (typeof node?.scrollIntoView === 'function') {
756 node.scrollIntoView({ block: 'nearest' });
757 }
758}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected