fix: change anchor jump to scrollIntoView
This commit is contained in:
parent
a8b0534861
commit
758b378e82
@ -19,6 +19,10 @@
|
||||
positionFixedSelector: '.tocbot',
|
||||
positionFixedClass: 'is-position-fixed',
|
||||
fixedSidebarOffset: 'auto',
|
||||
onClick: (e) => {
|
||||
document.getElementById(e.target.innerText).scrollIntoView()
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<% } %>
|
||||
|
Loading…
Reference in New Issue
Block a user