This commit is contained in:
syuilo 2019-05-21 18:08:58 +09:00
parent 7cb294e842
commit 27339e29a1

View file

@ -35,12 +35,10 @@ export default Vue.extend({
}, },
mounted() { mounted() {
document.addEventListener('keydown', this.onDocumentKeydown); document.addEventListener('keydown', this.onDocumentKeydown);
window.addEventListener('scroll', this.onScroll, { passive: true });
Progress.start(); Progress.start();
}, },
beforeDestroy() { beforeDestroy() {
document.removeEventListener('keydown', this.onDocumentKeydown); document.removeEventListener('keydown', this.onDocumentKeydown);
window.removeEventListener('scroll', this.onScroll);
}, },
methods: { methods: {
onDocumentKeydown(e) { onDocumentKeydown(e) {