GismoManager attach mesh initiation on release

Using the GizmoManager is a nice way to handle user interaction. When clicking on a mesh, which is in the list of attachableMeshes, the user-controls (e.g. rotation) can be activated.
This also happens, if the user clicks and drags to change her/his direction of view.
Is it possible to change this default behavior such that the activation of the gizmo only happens, if the user did not initiate a drag? I.e. on the release event instead of on the click event, and only if there was no previous (significant) drag during the last click?

You could set enableAutoPicking to false: GizmoManager | Babylon.js Documentation ( and add your own picking logic that considers drag, and manually call attachToMesh

1 Like