OnDragObserverble for Position Gizmo

Hi.

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.
https://playground.babylonjs.com/#MIKGWW#26

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 :

https://playground.babylonjs.com/#MIKGWW#27

1 Like

Oh, I see.
Thank you for your answer.