Skip to content

Commit

Permalink
Fix: Disable scrollSmooth
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Jul 7, 2024
1 parent 7466101 commit 44fa396
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/elements/Toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const Toc = ({ contentSelector, ...props }: TocProps) => {
tocSelector: `#${id}`, // 目次の表示部分
contentSelector: contentSelector, // 目次を生成する対象
headingSelector: "h2, h3", // 目次に表示する見出しのタグ

scrollSmooth: false,
scrollSmoothDuration: 0,
});

// コンポーネントがアンマウントされたときにTocbotを破棄
Expand Down

0 comments on commit 44fa396

Please sign in to comment.