ThreeJS: OrbitControls not working if TransformControls is present in r95



I created a sample code HERE. In my project used to work just fine before getting r95 version.

Basically, the function “onMouseMove” from OrbitControls is never reached. So you can only zoom but not pan or rotate.

If I use EditorControls instead of OrbitControls then it works, but problem with EditorControls is that you cannot configure the mouse buttons (unless you change the code).

Is there any reason for this or any workaround?


Yes, this is related to the new version TransformControls. More information right here:


Thanks! I didn’t see that post before, appreciate.