mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Fix: wykrywanie scrolla dzienników
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user