Glitching / flickering / bouncing when using hammer.js for spinning and zooming

I am trying to create a camera that can use touch to rotate and zoom a scene. I’m testing it out on iOS and every time I rotate and / or zoom the scene, it bounces back and forth – seemingly between the two fingers I am trying to use to rotate and zoom.

Reproduction CodePen is here: https://codepen.io/apowers313/pen/WbvVxKp

Is this a known bug? Any suggestions for how to troubleshoot or fix?

I see similar on Android.
This comment says hammer.js is no longer maintained.

Alternatives mentioned:

As it does not happen with the default babylon camera I am wondering if you should check with the hammer ppl as well ?

cc @amoebachant

Turns out that it was a problem with Hammer.js. It was picking up one-finger panning during my two-finger gestures and panning rapidly between my fingers. Thanks for the tips. Also, thanks for the heads up on Hammer.js no longer being maintained – I will look in to cutting over to one of the other libraries you mentioned.

3 Likes