This commit is contained in:
syuilo 2019-05-21 18:08:58 +09:00
parent 19588647d6
commit d0cc145cb3
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

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