mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 00:03:07 +02:00
Fix bug
This commit is contained in:
parent
3cd3e19199
commit
91b89b79d2
2 changed files with 16 additions and 15 deletions
|
@ -84,8 +84,7 @@ export default Vue.extend({
|
||||||
(this as any).os.new(MkGameWindow);
|
(this as any).os.new(MkGameWindow);
|
||||||
},
|
},
|
||||||
|
|
||||||
goToTop(e: HTMLElement) {
|
goToTop() {
|
||||||
if (e.classList.contains('active'))
|
|
||||||
window.scrollTo({
|
window.scrollTo({
|
||||||
top: 0,
|
top: 0,
|
||||||
behavior: 'smooth'
|
behavior: 'smooth'
|
||||||
|
|
|
@ -45,14 +45,7 @@ export default Vue.extend({
|
||||||
XPost,
|
XPost,
|
||||||
XClock,
|
XClock,
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
goToTop() {
|
|
||||||
window.scrollTo({
|
|
||||||
top: 0,
|
|
||||||
behavior: 'smooth'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.commit('setUiHeaderHeight', 48);
|
this.$store.commit('setUiHeaderHeight', 48);
|
||||||
|
|
||||||
|
@ -104,7 +97,16 @@ export default Vue.extend({
|
||||||
}, 2500);
|
}, 2500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
goToTop() {
|
||||||
|
window.scrollTo({
|
||||||
|
top: 0,
|
||||||
|
behavior: 'smooth'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue