OnDragObserverble for Position Gizmo


I have a question about observing the drag behavior of a mesh using a position gizmo.
I created PointerDragBehavior and added it to a mesh, just like this code.
However, the callback is not called.

Here is a link to the playground.

Could anyone explain what I’m doing wrong?
Thank you in advance.

Adding @Cedric

let me check…

I get the event callback when I click and drag a sphere.
To get a drag event on the gizmo itself, you have to hook onDragObservable like this :


1 Like

Oh, I see.
Thank you for your answer.