From 97273be3a607ab3719c0ca5cd3812157be4ce014 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sat, 30 Nov 2024 13:38:55 +0000 Subject: [PATCH] Add TODO --- src/view/com/pager/TabBar.tsx | 1 + 1 file changed, 1 insertion(+) 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) }