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 6c6ce69 commit c9ce44bCopy full SHA for c9ce44b
src/js/03-fragment-jumper.js
@@ -24,8 +24,12 @@
24
window.addEventListener('load', function jumpOnLoad (e) {
25
var fragment, target
26
if ((fragment = decodeFragment(window.location.hash)) && (target = document.getElementById(fragment))) {
27
+ document.documentElement.style.scrollBehavior = 'auto'
28
jumpToAnchor.bind(target)()
29
setTimeout(jumpToAnchor.bind(target), 0)
30
+ setTimeout(function () {
31
+ document.documentElement.style.scrollBehavior = ''
32
+ })
33
}
34
window.removeEventListener('load', jumpOnLoad)
35
})
0 commit comments