MCPcopy Index your code
hub / github.com/codeaashu/claude-code / scrollToElement

Function scrollToElement

src/ink/components/ScrollBox.tsx:130–140  ·  view source on GitHub ↗
(el: DOMElement, offset = 0)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

scrollMutatedFunction · 0.85

Tested by

no test coverage detected