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

How to use vue-touch as well as as @click so as to support both mobile and desktop events? #119

Open
purvishah165 opened this issue Feb 27, 2018 · 1 comment

Comments

@purvishah165
Copy link

I have a code like:

"<div @click= "doSomething()">"
Which is having some delay on mobile browser. How do I implement vue-touch here.
I am using vue 2.4
An example would be very helpful.

@ctf0
Copy link

ctf0 commented Sep 1, 2018

hammerjs works both on mobile and desktop, replace the @click with @tap and you are done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants