Open geotheory opened 3 years ago
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 Hammer.Pan
gesture recognizer is configured for Hammer.DIRECTION_ALL
by default.
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: