Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dillonzq/LoveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2022-05-11 23:03:44 +0300
committerDillon <dillonzq@outlook.com>2022-05-11 23:03:44 +0300
commit5e9c5f64176445b1bbb437e83aa707850730975e (patch)
tree440b5ea52b1e0eb302bb5106b393cba2a7b4cba4 /src
parent0960a266c7b26791f22766f0f892fd9bde8d5dc2 (diff)
feat: replace smooth scroll js with css scroll-behavior
Diffstat (limited to 'src')
-rw-r--r--src/js/theme.js10
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();