-
Notifications
You must be signed in to change notification settings - Fork 55
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
requireFailure not working with doubletap #23
Comments
I'll take a look later this week. In a bit of a time crunch for some work-related stuff. |
Looking at that, there's a chance that the |
I get the same problem if I remove hm-doubletap from the element. |
Still not working using v2.1.10. Slightly different error: "TypeError: Cannot read property 'requireFailure' of null |
Looking into this now. |
If you want to track my work, I'm debugging this here: http://plnkr.co/edit/KwuQrxV2cFhnwRnBfZj3 |
@mattmcdonald-uk Can you give me a more detailed error log? I'm having trouble reproducing this and I would like to see what line it's on/referencing. |
Seeing the exact same issue in your plunker. Error output from Chrome below:
|
Awesome, thanks for dropping that in there. |
Thanks for looking into this bug :) |
Hmm... That version of Hammer is old. I've updated it to v2.0.4. Some locations moved too, so use these links: http://ryanmullins.github.io/angular-hammer/examples/raw/hammer.js Take a look at it now and see what happens. I think you might still get a similar error, but I just want to be sure we're on the latest and greatest. |
No change using those versions. |
I fixed this by adding another additional directive named hm-require-failure that runs after all the recognizers are created. The problem is that hammer needs both of the recognizers to exist when enabling require failure. The current implementation tries to apply the recognizers options as it processes each recognizer directive. You can see the details here in the PR #57 |
When you add requireFailure of doubletap you get a TypeError: "TypeError: Cannot read property 'requireFailure' of null at db.V.requireFailure".
Changing the requireFailure to swipe, pan, etc. all works.
Simillarly, using a recognizeWith of singletap also doesn't work.
This example from hammerjs shows the regular usage of these options: http://codepen.io/jtangelder/pen/pBuIw
The text was updated successfully, but these errors were encountered: