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

prevent default #55

Closed
z1haze opened this issue Nov 7, 2016 · 2 comments
Closed

prevent default #55

z1haze opened this issue Nov 7, 2016 · 2 comments

Comments

@z1haze
Copy link

z1haze commented Nov 7, 2016

I started using this plugin because I had a problem on iphones where i had an anchor that had a hover event , and a click event. So in that case the during the first 'click' on the iphone it only activated the hover event, so users would have to in a sense double click to activate the click - this plugin seemed to fix that.

But when using an @click along side v-touch, it fires the events twice on desktop, it will fire the touch event, and the click event. I tried adding .prevent to the v-touch call, but it didnt do anything. Is this supposed to be able to prevent default action with touch events?

@z1haze
Copy link
Author

z1haze commented Nov 8, 2016

seems there is a 'ghost click' that is fired by the browsers? how do we handle that so as to not trigger the same function twice?

@deltragon
Copy link

That's a problem with Hammer.js itself, there is a workaround:
http://hammerjs.github.io/tips/ and https://gist.github.com/jtangelder/361052976f044200ea17

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

3 participants