Skip to content

Commit 8aee44c

Browse files
authored
Merge pull request #253 from pateljannat/sidebar-scroll
fix: sidebar scroll
2 parents 98ab0ca + e575036 commit 8aee44c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

wiki/public/js/render_wiki.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ window.RenderWiki = class RenderWiki extends Wiki {
169169
{
170170
scrollTop: offset,
171171
},
172-
500,
172+
100,
173173
);
174174
});
175175
});

wiki/public/js/wiki.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ window.Wiki = class Wiki {
1515
let active_sidebar_item = $(".doc-sidebar .sidebar-item.active");
1616
if (active_sidebar_item.length > 0) {
1717
setTimeout(function () {
18-
active_sidebar_item.get(0).scrollIntoView({
19-
behavior: "instant",
20-
block: "center",
21-
});
18+
active_sidebar_item.get(0).scrollIntoView(false);
2219
}, 50);
2320
}
2421
}

0 commit comments

Comments
 (0)