Open RomainFrancony opened 6 years ago
Hello, thanks for this wrapper!
When trying to add panstart or panleft events alone, it failed with error invalid direction and they are not called.
panstart
panleft
invalid direction
But if you set the pan event, they will be called at the right timing (panstart on the first event and panleftwhen panning on the left.
pan
Could it be possible to have the panstart event alone please.
Here a simple example to try it, remove the v-hammer:pan="pan" line and see how no other event are called.
v-hammer:pan="pan"
<template> <div id="app" v-hammer:pan="pan" v-hammer:panstart="panStart" v-hammer:panleft="panLeft"> </div> </template> <script> export default { name: 'app', methods: { panStart(e) { console.log('Pan start called'); }, pan(e) { console.log('Pan called'); }, panLeft(e) { console.log('Pan left called'); } } } </script> <style> #app { height: 100vh; } </style>
Hello, thanks for this wrapper!
When trying to add
panstart
orpanleft
events alone, it failed with errorinvalid direction
and they are not called.But if you set the
pan
event, they will be called at the right timing (panstart
on the first event andpanleft
when panning on the left.Could it be possible to have the
panstart
event alone please.Here a simple example to try it, remove the
v-hammer:pan="pan"
line and see how no other event are called.