From e2ae5420317d5527f188f89bc894b01a605c5a17 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Fri, 12 Jun 2026 11:08:59 -0700 Subject: [PATCH] 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. --- mobile/app/h/[hostId]/session/[worktreeId].tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/app/h/[hostId]/session/[worktreeId].tsx b/mobile/app/h/[hostId]/session/[worktreeId].tsx index c9a388ee8a5..e4b2a03ccc3 100644 --- a/mobile/app/h/[hostId]/session/[worktreeId].tsx +++ b/mobile/app/h/[hostId]/session/[worktreeId].tsx @@ -2324,6 +2324,7 @@ export default function SessionScreen() { currentOffset: tabStripOffsetRef.current }) if (nextOffset !== tabStripOffsetRef.current) { + tabStripOffsetRef.current = nextOffset tabStripRef.current?.scrollTo({ x: nextOffset, animated }) } }, [])