MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / scrollDown

Function scrollDown

apps/web/ui/ChannelView/TopicView/index.tsx:363–371  ·  view source on GitHub ↗
(offset = 0)

Source from the content-addressed store, hash-verified

361 };
362
363 function scrollDown(offset = 0) {
364 const scrollableRoot = scrollableRootRef.current;
365 const lastScrollDistanceToBottom =
366 lastScrollDistanceToBottomRef.current || 0;
367 if (scrollableRoot) {
368 scrollableRoot.scrollTop =
369 scrollableRoot.scrollHeight - lastScrollDistanceToBottom + offset;
370 }
371 }
372
373 const threadToRender = threads.find(
374 (thread) => thread.id === currentThreadId

Callers 1

ChannelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected