mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 08:03:13 +00:00
Update tabStripOffsetRef when scrolling mobile tab strip
Ensure the cached offset is updated to match the next scroll position. Without this update, subsequent scroll calculations would use stale offset values.
This commit is contained in:
@@ -2324,6 +2324,7 @@ export default function SessionScreen() {
|
||||
currentOffset: tabStripOffsetRef.current
|
||||
})
|
||||
if (nextOffset !== tabStripOffsetRef.current) {
|
||||
tabStripOffsetRef.current = nextOffset
|
||||
tabStripRef.current?.scrollTo({ x: nextOffset, animated })
|
||||
}
|
||||
}, [])
|
||||
|
||||
Reference in New Issue
Block a user