Skip to content
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

How to set local options? #29

Open
ThomasKuhlmann opened this issue Nov 4, 2018 · 4 comments
Open

How to set local options? #29

ThomasKuhlmann opened this issue Nov 4, 2018 · 4 comments

Comments

@ThomasKuhlmann
Copy link

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
Copy link

scheMeZa commented Mar 27, 2019

I'd also like to know...

@ptandler
Copy link

Seems this is related to #35

@sebj54
Copy link

sebj54 commented Mar 12, 2020

I found a solution for this issue, check my comment on another issue: #23 (comment)

@arm-liang
Copy link

add custom direction to modifiy el.hammerOptions

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

No branches or pull requests

5 participants