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:
Jinjing
2026-06-12 11:08:59 -07:00
parent 26dde97181
commit e2ae542031
@@ -2324,6 +2324,7 @@ export default function SessionScreen() {
currentOffset: tabStripOffsetRef.current
})
if (nextOffset !== tabStripOffsetRef.current) {
tabStripOffsetRef.current = nextOffset
tabStripRef.current?.scrollTo({ x: nextOffset, animated })
}
}, [])