Hi All I'v just tried to make a fast example of double tapping in a mobile device but none of the two methods I know worked properly:
scene.onPointerObservable.add((pointerInfo) => {
switch (pointerInfo.type) {
case BABYLON.PointerEventTypes.POINTERDOUBLETAP:
console.log("POINTER DOUBLE-TAP");
break;
}
});
window.addEventListener("dblclick", function () {
console.log("POINTER DOUBLE-TAP B");
});
Both are working ok in PC and in the desktop version of the web in my mobile device (Google Chrome)
Any idea about this?
Thank you in advance!