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

does it support stopPropagation() in vue-touch 2.0 #69

Closed
dericgit opened this issue Jan 17, 2017 · 1 comment
Closed

does it support stopPropagation() in vue-touch 2.0 #69

dericgit opened this issue Jan 17, 2017 · 1 comment

Comments

@dericgit
Copy link

dericgit commented Jan 17, 2017

@tap.stop and @tap="demoMethod($event)" $event.stopPropagation()

it is error that dose not find stopPropagation method

after @tap pass $event is not primary MouseEvent

@dericgit dericgit changed the title vue-touch 2.0 是否支持 stopPropagation() does it support stopPropagation() in vue-touch 2.0 Jan 17, 2017
@LinusBorg
Copy link
Member

LinusBorg commented Jan 24, 2017

@tap.stop and @tap="demoMethod($event)" $event.stopPropagation()
Those modifiers don't exist because they can't work - because Hammer events don't support this, and don't have to).

I think your problem is the so-called "ghost click" that happens with tap events. Please see here:

https://hammerjs.github.io/tips/ (end of page)

or simply try a @click.prevent.stop

after @tap pass $event is not primary MouseEvent

Because HammerJS does not emit a MousEvent, it emits a Hammer event. If you want / need a mouse event, this libary is not for you.

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

No branches or pull requests

2 participants