hammerjs / touchemulator

Emulate touch input on your desktop
http://hammerjs.github.io/touch-emulator
MIT License
381 stars 110 forks source link

Using with current hammerjs/webpack/modern browsers #22

Open niedfelj opened 4 years ago

niedfelj commented 4 years ago

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 commented 3 years ago

Thank you! This got hammer working with this emulation.

marijntje42 commented 2 years ago

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