Skip to content

Commit afe3a1b

Browse files
committed
add rootMargin value
1 parent cd03700 commit afe3a1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/introduction/components/sidebar-nav/sidebar-nav.component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export const SidebarNavComponent: React.FC<SidebarNavComponentProps> = ({
3636
});
3737
},
3838
{
39-
threshold: 0,
39+
rootMargin: "0px 0px -40% 0px",
40+
threshold: 1,
4041
}
4142
);
4243
const elements = headings

0 commit comments

Comments
 (0)