gizmoManager.gizmos.positionGizmo.xGizmo.dragBehavior.onDragObservable.add((evt)=>{
console.log(evt.dragDistance > 0 ? '+1' : '-1')
})
- You can use the
evt
argument of the observer to get additional infos about the gesture (API here). - With
evt.dragDistance
you can get +1 or -1 like in this example : https://playground.babylonjs.com/?BabylonToolkit#C77SMH#35