Skip to content

forbid v-window to drag #17193

Closed Answered by larspava
larspava asked this question in Q&A
Apr 20, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yes, I created an empty method that is called in the attempt of swipe . I don't know if it's the best method but it worked.
Something like this:

on HTML:

<v-window v-model="step" :touch="touch">...

on JS:

data() {
   touch: {
                left: this.preventSwipe,
                right: this.preventSwipe
            }
...

 methods: {
        preventSwipe() {
        }, //empty method

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@larspava
Comment options

Answer selected by larspava
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants