MCPcopy Index your code
hub / github.com/winfunc/opcode / scrollToBottom

Function scrollToBottom

src/components/SessionOutputViewer.tsx:68–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 };
67
68 const scrollToBottom = () => {
69 if (!hasUserScrolled) {
70 const endRef = isFullscreen ? fullscreenMessagesEndRef.current : outputEndRef.current;
71 if (endRef) {
72 endRef.scrollIntoView({ behavior: 'smooth' });
73 }
74 }
75 };
76
77 // Clean up listeners on unmount
78 useEffect(() => {

Callers 1

SessionOutputViewerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected