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

Function handleRootScroll

apps/web/ui/ChannelView/ChatView/index.tsx:355–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isScrollAtBottomFunction · 0.90

Tested by

no test coverage detected