Skip to content

Commit

Permalink
fix: don't change url hash while scrolling (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Oct 12, 2023
1 parent 1d60731 commit d55ed87
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/vitepress/composables/outline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export function useActiveAnchor(
const [isActive, hash] = isAnchorActive(i, anchor, nextAnchor)

if (isActive) {
history.replaceState(null, document.title, hash ? hash : ' ')
activateLink(hash)
return
}
Expand Down

0 comments on commit d55ed87

Please sign in to comment.