Docs: fix conflicts caused by smooth scrolling in Chrome

This commit is contained in:
pagedown 2021-12-09 14:31:54 +08:00
parent 3d59e4eac1
commit a4a9290577
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -22,7 +22,7 @@ function scroll_sidebar_node_into_view(a) {
a = a.offsetParent; a = a.offsetParent;
if (!a || a == ss) break; if (!a || a == ss) break;
} }
ss.scrollTop = pos; ss.scrollTo({top: pos, behavior: 'instant'});
} }
function mark_current_link(sidebar_tree, a, onload) { function mark_current_link(sidebar_tree, a, onload) {