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

Function handleRootScroll

apps/web/ui/ChannelView/TopicView/index.tsx:354–361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352 );
353
354 const handleRootScroll = () => {
355 const rootNode = scrollableRootRef.current;
356 if (rootNode) {
357 setIsLeftScrollAtBottom(isScrollAtBottom(rootNode));
358 const scrollDistanceToBottom = rootNode.scrollHeight - rootNode.scrollTop;
359 lastScrollDistanceToBottomRef.current = scrollDistanceToBottom;
360 }
361 };
362
363 function scrollDown(offset = 0) {
364 const scrollableRoot = scrollableRootRef.current;

Callers

nothing calls this directly

Calls 1

isScrollAtBottomFunction · 0.90

Tested by

no test coverage detected