Explorar o código

Check Event Type Touch input Camera (#8707)

Cedric Guillemet %!s(int64=5) %!d(string=hai) anos
pai
achega
f08a044a2a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/Cameras/Inputs/freeCameraTouchInput.ts

+ 2 - 1
src/Cameras/Inputs/freeCameraTouchInput.ts

@@ -54,7 +54,8 @@ export class FreeCameraTouchInput implements ICameraInput<FreeCamera> {
             this._pointerInput = (p) => {
                 var evt = <PointerEvent>p.event;
 
-                if (evt.pointerType === "mouse") {
+                let isMouseEvent = evt instanceof MouseEvent;
+                if (evt.pointerType === "mouse" || isMouseEvent) {
                     return;
                 }