mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Fix mobile scroll on session reload and git errors on empty repos
This commit is contained in:
1 parent
7b2892b55e
commit
f90683071f
3 files changed
+75
-44
No files matched your search
@@ -42,6 +42,12 @@ export const MessageThread = memo(function MessageThread({ opcodeUrl, sessionID,
|
||||
const hasInitialScrolledRef = useRef(false)
|
||||
const scrollRAFRef = useRef<number | null>(null)
|
||||
const lastScrollTimeRef = useRef(0)
|
||||
|
||||
useEffect(() => {
|
||||
hasInitialScrolledRef.current = false
|
||||
userScrolledUpRef.current = false
|
||||
lastMessageCountRef.current = 0
|
||||
}, [sessionID])
|
||||
|
||||
const scrollToBottom = useCallback((force = false) => {
|
||||
if (!containerRef?.current) return
|
||||
|
||||
Reference in new issue
Block a user