Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
m4ximuel and WDaan committed Apr 5, 2021
1 parent e2d4496 commit 0960962
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/Modals/SettingsModal/SettingsModal.vue
Expand Up @@ -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>
Expand Down
9 changes: 2 additions & 7 deletions src/components/Modals/SettingsModal/Tabs/VueTorrent.vue
Expand Up @@ -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'" />
Expand All @@ -39,11 +39,6 @@ export default {
mixins: [FullScreenModal],
data: () => ({
tab: null
}),
methods: {
updateTab(tab) {
this.tab = tab
}
}
})
}
</script>
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions src/mixins/Modal.js
Expand Up @@ -15,9 +15,6 @@ export default {
methods: {
deleteModal() {
setTimeout(() => this.$store.commit('DELETE_MODAL', this.guid), 100)
},
updateTab(tab) {
this.tab = tab
}
},
beforeDestroy() {
Expand Down

0 comments on commit 0960962

Please sign in to comment.