I have been trying multiple ways to get this to work and had no success, is there a way to create a DoubleClick/DoubleTap observable for the BABYLON.GUI buttons that I am not seeing? I tried getting the information from the scene pointer events…
this.getScene().onPointerObservable.add((pointerInfo, eventState) => {
pointerInfo.pickInfo.
switch (pointerInfo.type) {
case BABYLON.PointerEventTypes.POINTERTAP:
console.log("POINTER TAP");
console.log(eventState.currentTarget);
break;
case BABYLON.PointerEventTypes.POINTERDOUBLETAP:
console.log("POINTER DOUBLE-TAP");
break;
}
});
But those events do not trigger when clicking the GUI buttons.