feat: replace smooth scroll js with css scroll-behavior

This commit is contained in:
Dillon
2022-05-12 04:03:44 +08:00
parent 0960a266c7
commit 5e9c5f6417
14 changed files with 9 additions and 48 deletions

View File

@@ -855,16 +855,6 @@ var Theme = /*#__PURE__*/function () {
}
}
}
}, {
key: "initSmoothScroll",
value: function initSmoothScroll() {
if (SmoothScroll) new SmoothScroll('[href^="#"]', {
speed: 300,
speedAsDuration: true,
header: '#header-desktop',
offset: 10
});
}
}, {
key: "initCookieconsent",
value: function initCookieconsent() {
@@ -1017,7 +1007,6 @@ var Theme = /*#__PURE__*/function () {
this.initHighlight();
this.initTable();
this.initHeaderLink();
this.initSmoothScroll();
this.initMath();
this.initMermaid();
this.initEcharts();