Open Zag42 opened 6 years ago
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!
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 :