We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f094a9d commit 2046f43Copy full SHA for 2046f43
src/modules/Tabs.tsx
@@ -37,7 +37,8 @@ export function Tabs({
37
const containerRect = containerRef.current.getBoundingClientRect();
38
const buttonRect = activeButton.getBoundingClientRect();
39
40
- const left = buttonRect.left - containerRect.left;
+ const left =
41
+ buttonRect.left - containerRect.left + containerRef.current.scrollLeft;
42
const width = buttonRect.width;
43
44
setIndicatorStyle({ left, width });
0 commit comments