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

Pan threshold not working #709

Open
evanthomas opened this issue Nov 10, 2014 · 3 comments
Open

Pan threshold not working #709

evanthomas opened this issue Nov 10, 2014 · 3 comments

Comments

@evanthomas
Copy link

Hi,

I'm not a js programmer so this issue may be with me rather hammer, I apologise if this is case.

Basically, I'm not able to set the pan/scroll threshold.

I'm using hammer from a GWT application. I can see that I'm passing the threshold through when the event handler is attached (Hammer.js:1997) but it does not seem to be getting passed through to the PanRecognizer. What is the correct way to programmatically set the pan threshold?

Thanks,
Evan.

@berkaytheunicorn
Copy link

+1 with jquery options won't pass variables to recognizers

@berkaytheunicorn
Copy link

if you don't use jquery

mc = new Hammer.Manager(element.find(".element")[0])
mc.add(new Hammer.Pan({ threshold: 0 }))
mc.add(new Hammer.Tap())

does the trick ;)

but options parameter won't pass.

@evanthomas
Copy link
Author

Thanks Berkaey, I'll give it a try.

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

2 participants