Fix: wykrywanie scrolla dzienników

This commit is contained in:
2022-09-04 16:46:44 +02:00
parent 1f95bc5230
commit dc1c457ea4
2 changed files with 5 additions and 5 deletions
@@ -202,7 +202,7 @@ export default defineComponent({
this.search();
}
window.addEventListener('wheel', this.handleScroll);
window.addEventListener('scroll', this.handleScroll);
},
mounted() {
@@ -212,7 +212,7 @@ export default defineComponent({
},
deactivated() {
window.removeEventListener('wheel', this.handleScroll);
window.removeEventListener('scroll', this.handleScroll);
},
methods: {
@@ -248,7 +248,7 @@ export default defineComponent({
},
activated() {
window.addEventListener('wheel', this.handleScroll);
window.addEventListener('scroll', this.handleScroll);
if (this.timetableId) {
this.searchersValues['search-train'] = `#${this.timetableId}`;
@@ -261,7 +261,7 @@ export default defineComponent({
},
deactivated() {
window.removeEventListener('wheel', this.handleScroll);
window.removeEventListener('scroll', this.handleScroll);
},
computed: {
@@ -533,4 +533,4 @@ ul.stock-list {
justify-content: center;
}
}
</style>
</style>