Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Swipe horizontal not working on all elements (mobile only) #76

@Linzdigr

Description

@Linzdigr

I use a v-touch component as a container to act on the swipeleft an swiperight event and it works as expected on desktop view.
But when switching on mobile, only some child elements seems to listen to.

Here is the code below (Vuejs 2.1.10 & vue-touch 2.0.0-beta.4):

import VueTouch from 'vue-touch'

VueTouch.config.swipe = {
    direction: 'horizontal'
}

Vue.use(VueTouch, {name: 'v-touch'})

// ... and in the template:

<v-touch v-on:swipeleft="onSwipeRight2Left" v-on:swiperight="onSwipeLeft2Right">
     // The page content
</v-touch>

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions