Skip to content

Commit

Permalink
fix: Update anchor position
Browse files Browse the repository at this point in the history
Resolves #257
  • Loading branch information
oodamien committed Jun 11, 2024
1 parent 1187c38 commit 80de612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/03-fragment-jumper.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
window.location.hash = '#' + this.id
e.preventDefault()
}
window.scrollTo(0, computePosition(this, 0) - toolbar.getBoundingClientRect().bottom - 10)
window.scrollTo(0, computePosition(this, 0) - toolbar.getBoundingClientRect().bottom - 80)
}

window.addEventListener('load', function jumpOnLoad (e) {
Expand Down

0 comments on commit 80de612

Please sign in to comment.