-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Custom Events #10
Comments
having similar issue.. did you figure it out by any chance? |
Yes, for now, this is not supported. But I'll add it into next big version. |
missing double tap too... |
// just like that
import { VueHammer } from 'vue2-hammer'
// ...
const doubleTap = { type: 'Tap', event: 'doubletap', taps: 2 };
VueHammer.customEvents = {
'doubletap': doubleTap
}
Vue.use(VueHammer)
// Use
<div v-hammer:doubletap="onDoubleTap"></div> |
Big thanks to @lzx-cvte, this should be part of the official doc! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
First of all, thanks for this wrapper!
I am trying to add two custom events (single and double tap gestures) by using the "customEvents" property of VueHammer, but i have the following error:
This property is not documented in your readme, is it supported/working? Or am i doing this all wrong ? Thanks
Here is what i have:
In my template:
And in my component methods :
The text was updated successfully, but these errors were encountered: