fix: scroll anchor preventing text selection

This commit is contained in:
Nick
2019-08-25 17:12:38 -04:00
parent 1419e9613a
commit c29d11f775
2 changed files with 7 additions and 11 deletions

View File

@@ -247,7 +247,7 @@ export default {
upBtnShown: false,
scrollOpts: {
duration: 1500,
offset: -75,
offset: 0,
easing: 'easeInOutCubic'
},
scrollStyle: {
@@ -309,6 +309,12 @@ export default {
mounted () {
Prism.highlightAllUnder(this.$refs.container)
this.navShown = this.$vuetify.breakpoint.smAndUp
this.$nextTick(() => {
if (window.location.hash && window.location.hash.length > 1) {
this.$vuetify.goTo(window.location.hash, this.scrollOpts)
}
})
},
methods: {
goHome () {