fix: distracting and time wasting after importing smoothing scroll

Lervarage 'speedAsDuration: true' to ensure each transition only takes 400ms (Extracted from vuejs.org https://github.com/vuejs/vuejs.org/blob/master/themes/vue/source/js/common.js#L367)
This commit is contained in:
ULIVZ
2018-11-24 12:09:32 +08:00
parent 6a47d80a6d
commit 58981fb40d
@@ -6,7 +6,8 @@ export default {
this.$vuepress.$set('contentMounted', true)
this.$smoothScroll = new SmoothScroll('a[href*="#"]', {
speed: 1000,
speed: 400,
speedAsDuration: true,
easing: 'easeInOutCubic'
})