diff options
author | Dillon <dillonzq@outlook.com> | 2022-05-11 23:03:44 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2022-05-11 23:03:44 +0300 |
commit | 5e9c5f64176445b1bbb437e83aa707850730975e (patch) | |
tree | 440b5ea52b1e0eb302bb5106b393cba2a7b4cba4 /src | |
parent | 0960a266c7b26791f22766f0f892fd9bde8d5dc2 (diff) |
feat: replace smooth scroll js with css scroll-behavior
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index 50f9381e..429cb342 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -636,15 +636,6 @@ class Theme { } } - initSmoothScroll() { - if (SmoothScroll) new SmoothScroll('[href^="#"]', { - speed: 300, - speedAsDuration: true, - header: '#header-desktop', - offset: 10, - }); - } - initCookieconsent() { if (this.config.cookieconsent) cookieconsent.initialise(this.config.cookieconsent); } @@ -728,7 +719,6 @@ class Theme { this.initHighlight(); this.initTable(); this.initHeaderLink(); - this.initSmoothScroll(); this.initMath(); this.initMermaid(); this.initEcharts(); |