diff --git a/src/view/com/pager/TabBar.tsx b/src/view/com/pager/TabBar.tsx index d4fd87bfc1..a8a02e57fe 100644 --- a/src/view/com/pager/TabBar.tsx +++ b/src/view/com/pager/TabBar.tsx @@ -88,6 +88,7 @@ export function TabBar({ const offsetPerPage = contentSize.get() - containerSize.get() const progressDiff = index - dragProgress.get() const offsetDiff = (progressDiff / (itemsLength - 1)) * offsetPerPage + // TODO: Get into view if obscured const offset = scrollX.get() + offsetDiff scrollTo(scrollElRef, offset, 0, true) }