Unable to use the mouse to drag object along axis (X Y and Z) using the mouse

Hi All,

I’m currently using the default orbit controls and default transform.

basically this…

https://threejs.org/examples/misc_controls_transform.html

However, this doesn’t respect the directional axis arrows when I select and drag… it allows me to freely move the object in any direction!

what am I missing?

any help would be appreciated

Sorry, but can you explain in more detail the issue? I’m afraid it’s not clear what’s going wrong.

we managed to sort the issue by adding

gizmo.addEventListener( 'dragging-changed', function ( event ) {
  orbitControls.enabled = ! event.value;
});

thank you for taking the time to look over my question!