-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Delay in y-axis pan event #1272
Comments
I'm facing the exact same issue. Any pointers would be great. |
Same issue here! |
I gave up on hammerjs in the end. Dead project and I realised what I needed was achievable with recent core javascript improvements. |
@geotheory @f4irline @KS-CleverCopter It turns out this is because hammer.js is only configured for x-axis pan by default (I don't know why -- probably something to do with default scrolling behavior). To remove the delay from y-axis pan, try this: var hammertime = new Hammer(myContainer, {
recognizers: [
[Hammer.Pan]
]
}) This works because the |
The following script is a basic navigation that enforces perpendicular motion (left-right-up-down) in a Phaser-based app. My problem is a significant delay in y-direction pan events triggering, which renders the app very difficult to use. This definitely seems an event problem rather than parameter sensitivity as adjusting parameters has no effect on the delay.
Notes:
Any ideas how to workaround this? Here is a working example:
The text was updated successfully, but these errors were encountered: