ThreeJS: OrbitControls not working if TransformControls is present in r95

orbit-controls
transform-controls

#1

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?


#2

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


#3

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