fix: remove gesture feature on tabs (buggy anyway)

* Update SettingsModal.vue

remove gesture feature on tabs

* Update TorrentDetailModal.vue

A fatal gesture error occurs in draggable items or horizontal scrolling by the built-in gesture.

* fix: remove tab gestures

Co-authored-by: Daan Wijns <dw.daanwijns@gmail.com>
This commit is contained in:
m4ximuel 2021-04-05 16:21:53 +09:00 committed by GitHub
parent e2d4496a2b
commit 0960962441
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 12 deletions

View file

@ -34,7 +34,7 @@
Tags & Categories
</v-tab>
</v-tabs>
<v-tabs-items v-model="tab" :touch="updateTab(tab)">
<v-tabs-items v-model="tab" touchless">
<v-tab-item value="downloads">
<Downloads :is-active="tab === 'downloads'" />
</v-tab-item>

View file

@ -12,7 +12,7 @@
</v-tabs>
<v-tabs-items
v-model="tab"
:touch="updateTab(tab)"
touchless
>
<v-tab-item value="general">
<General :is-active="tab === 'downloads'" />
@ -39,11 +39,6 @@ export default {
mixins: [FullScreenModal],
data: () => ({
tab: null
}),
methods: {
updateTab(tab) {
this.tab = tab
}
}
})
}
</script>

View file

@ -40,7 +40,7 @@
Tags & Categories
</v-tab>
</v-tabs>
<v-tabs-items v-model="tab" :touch="updateTab(tab)">
<v-tabs-items v-model="tab" touchless>
<v-tab-item value="info">
<info :is-active="tab === 'info'" :hash="hash" />
</v-tab-item>

View file

@ -15,9 +15,6 @@ export default {
methods: {
deleteModal() {
setTimeout(() => this.$store.commit('DELETE_MODAL', this.guid), 100)
},
updateTab(tab) {
this.tab = tab
}
},
beforeDestroy() {