Deactivate right click on camera

Is there a way to deactivate the right click function such that the camera positioning does not work?
Here the ArcRotate camera rotates around with left click and that is all I need. So how do I deactivate right click function?

https://playground.babylonjs.com/#UU7RQ#1

You may use hints from Customizing Camera Inputs | Babylon.js Documentation or just add usual JS event listener for the right mouse click.

1 Like