MCPcopy Create free account
hub / github.com/experdot/pointer / scrollToMessage

Function scrollToMessage

src/renderer/src/components/pages/chat/MessageList.tsx:311–316  ·  view source on GitHub ↗
(messageId: string, behavior: 'smooth' | 'instant' = 'smooth')

Source from the content-addressed store, hash-verified

309
310 // 滚动到指定的消息
311 const scrollToMessage = (messageId: string, behavior: 'smooth' | 'instant' = 'smooth') => {
312 const messageElement = messageRefs.current.get(messageId)
313 if (messageElement) {
314 messageElement.scrollIntoView({ behavior, block: 'start' })
315 }
316 }
317
318 // 处理搜索导航
319 const handleSearch = useCallback(

Callers 1

MessageList.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected