MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / handleConversationViewScroll

Function handleConversationViewScroll

src/components/ConversationView/index.tsx:65–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 });
64
65 const handleConversationViewScroll = () => {
66 if (!conversationViewRef.current) {
67 return;
68 }
69 setShowHeaderShadow((conversationViewRef.current?.scrollTop || 0) > 0);
70 setIsStickyAtBottom(
71 conversationViewRef.current.scrollTop + conversationViewRef.current.clientHeight >= conversationViewRef.current.scrollHeight
72 );
73 };
74 conversationViewRef.current?.addEventListener("scroll", handleConversationViewScroll);
75
76 return () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected