MCPcopy Create free account
hub / github.com/Noumena-Network/code / scrollToBottom

Function scrollToBottom

src/ink/components/ScrollBox.tsx:160–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 scrollMutated(el);
159 },
160 scrollToBottom() {
161 const el = domRef.current;
162 if (!el) return;
163 el.pendingScrollDelta = undefined;
164 el.stickyScroll = true;
165 markDirty(el);
166 notify();
167 forceRender(n => n + 1);
168 },
169 getScrollTop() {
170 return domRef.current?.scrollTop ?? 0;
171 },

Callers

nothing calls this directly

Calls 2

markDirtyFunction · 0.85
notifyFunction · 0.70

Tested by

no test coverage detected