2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Vuetify】v-tabs内のVue.Draggableがタッチデバイスで正常に動作しない現象の対策

Last updated at Posted at 2020-03-02

現象

入れ替え自体はできるが、ドラッグしたアイテムがドラッグされたままのような状態になっている。
機能的に問題はないがとてもカッコ悪い。
image.png

考察

v-tabのスワイプでのタブ切り替え操作でタッチイベントが競合しているのではないか?

対策

スワイプのタブ切り替えを無効にしてみる

tab.vue
       <v-tabs-items :touchless="true">
            <v-tab-item key="tab-search">
                <order-search/>
            </v-tab-item>
            <v-tab-item key="tab-application">
                <orders-application/>
            </v-tab-item>
            <v-tab-item key="tab-keep">
                <order-keep/>
            </v-tab-item>
        </v-tabs-items>

結果

解決しました

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?