MCPcopy Create free account
hub / github.com/winfunc/opcode / scrollToBottom

Function scrollToBottom

src/components/AgentRunOutputViewer.tsx:93–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 };
92
93 const scrollToBottom = () => {
94 if (!hasUserScrolled) {
95 const endRef = isFullscreen ? fullscreenMessagesEndRef.current : outputEndRef.current;
96 if (endRef) {
97 endRef.scrollIntoView({ behavior: 'smooth' });
98 }
99 }
100 };
101
102 // Load agent run on mount
103 useEffect(() => {

Callers 1

AgentRunOutputViewerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected