MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / scrollToElement

Function scrollToElement

source code/ink/components/ScrollBox.tsx:132–142  ·  view source on GitHub ↗
(el: DOMElement, offset = 0)

Source from the content-addressed store, hash-verified

130 scrollMutated(el);
131 },
132 scrollToElement(el: DOMElement, offset = 0) {
133 const box = domRef.current;
134 if (!box) return;
135 box.stickyScroll = false;
136 box.pendingScrollDelta = undefined;
137 box.scrollAnchor = {
138 el,
139 offset
140 };
141 scrollMutated(box);
142 },
143 scrollBy(dy: number) {
144 const el = domRef.current;
145 if (!el) return;

Callers

nothing calls this directly

Calls 1

scrollMutatedFunction · 0.85

Tested by

no test coverage detected