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>
|
||||
<% } %>
|
||||
@ -40,4 +44,4 @@
|
||||
|
||||
<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user