MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / scrollDown

Function scrollDown

apps/web/ui/ChannelView/ChatView/index.tsx:364–372  ·  view source on GitHub ↗
(offset = 0)

Source from the content-addressed store, hash-verified

362 };
363
364 function scrollDown(offset = 0) {
365 const scrollableRoot = scrollableRootRef.current;
366 const lastScrollDistanceToBottom =
367 lastScrollDistanceToBottomRef.current || 0;
368 if (scrollableRoot) {
369 scrollableRoot.scrollTop =
370 scrollableRoot.scrollHeight - lastScrollDistanceToBottom + offset;
371 }
372 }
373
374 const debouncedCreateMessage = useCallback(
375 debounce(api.createMessage, 100),

Callers 1

ChannelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected