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

Using with current hammerjs/webpack/modern browsers #22

Open
niedfelj opened this issue Dec 5, 2019 · 2 comments
Open

Using with current hammerjs/webpack/modern browsers #22

niedfelj opened this issue Dec 5, 2019 · 2 comments

Comments

@niedfelj
Copy link

niedfelj commented Dec 5, 2019

To get this to work with the current hammerjs and modern browsers, I had to explicitly setup hammerjs with an inputClass designation:

let hammertime = new Hammer(canvas, {
inputClass: Hammer.TouchInput
})

Otherwise it was only recognizing pointer events and not multitouch events needed for things like pinch/rotate etc.

@rockerBOO
Copy link

Thank you! This got hammer working with this emulation.

@marijntje42
Copy link

Thank you so much! Finally got this working thanks to this :)

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

3 participants