bsdfzzzy / vue2-hammer

Hammer.js wrapper for Vue 2.x to support some touching operation in the mobile.
MIT License
253 stars 48 forks source link

How to set local options? #29

Open ThomasKuhlmann opened 5 years ago

ThomasKuhlmann commented 5 years ago

Hi,

your documentation says "There are two ways to customize recognizer options such as direction and threshold. The first one is setting global options"

but you don't explain how the second way works (assuming that's setting options locally when using the directive?). I tried having a look at your source code and could see that you do accept local config, but I couldn't figure out how to pass it. I tried setting it via v-hammer.config="{enabled: false} but this doesn't seem to work. Is there a way to disable all events on a local basis?

scheMeZa commented 5 years ago

I'd also like to know...

ptandler commented 4 years ago

Seems this is related to #35

sebj54 commented 4 years ago

I found a solution for this issue, check my comment on another issue: https://github.com/bsdfzzzy/vue2-hammer/issues/23#issuecomment-598069708

arm-liang commented 2 years ago

add custom direction to modifiy el.hammerOptions