|
@@ -1788,24 +1788,16 @@ module BABYLON {
|
|
if (!clickInfo.ignore) {
|
|
if (!clickInfo.ignore) {
|
|
if (!clickInfo.hasSwiped) {
|
|
if (!clickInfo.hasSwiped) {
|
|
if (clickInfo.singleClick && this.onPointerObservable.hasSpecificMask(PointerEventTypes.POINTERTAP)) {
|
|
if (clickInfo.singleClick && this.onPointerObservable.hasSpecificMask(PointerEventTypes.POINTERTAP)) {
|
|
- let type = PointerEventTypes.POINTERTAP;
|
|
|
|
- let pi = new PointerInfo(type, evt, pickResult);
|
|
|
|
- this._setRayOnPointerInfo(pi);
|
|
|
|
- this.onPointerObservable.notifyObservers(pi, type);
|
|
|
|
|
|
+ type = PointerEventTypes.POINTERTAP;
|
|
}
|
|
}
|
|
if (clickInfo.doubleClick && this.onPointerObservable.hasSpecificMask(PointerEventTypes.POINTERDOUBLETAP)) {
|
|
if (clickInfo.doubleClick && this.onPointerObservable.hasSpecificMask(PointerEventTypes.POINTERDOUBLETAP)) {
|
|
- let type = PointerEventTypes.POINTERDOUBLETAP;
|
|
|
|
- let pi = new PointerInfo(type, evt, pickResult);
|
|
|
|
- this._setRayOnPointerInfo(pi);
|
|
|
|
- this.onPointerObservable.notifyObservers(pi, type);
|
|
|
|
|
|
+ type = PointerEventTypes.POINTERDOUBLETAP;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- else {
|
|
|
|
- let pi = new PointerInfo(type, evt, pickResult);
|
|
|
|
- this._setRayOnPointerInfo(pi);
|
|
|
|
- this.onPointerObservable.notifyObservers(pi, type);
|
|
|
|
- }
|
|
|
|
|
|
+ let pi = new PointerInfo(type, evt, pickResult);
|
|
|
|
+ this._setRayOnPointerInfo(pi);
|
|
|
|
+ this.onPointerObservable.notifyObservers(pi, type);
|
|
}
|
|
}
|
|
|
|
|
|
if (this.onPointerUp && !clickInfo.ignore) {
|
|
if (this.onPointerUp && !clickInfo.ignore) {
|