Explorar el Código

Update babylon.freecamera.input.mouse.ts

Gijs Schenk hace 8 años
padre
commit
0c1a1d5526
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Cameras/Inputs/babylon.freecamera.input.mouse.ts

+ 1 - 1
src/Cameras/Inputs/babylon.freecamera.input.mouse.ts

@@ -28,7 +28,7 @@ module BABYLON {
                         return;
                     }
 
-                    if(this.buttons.indexOf(evt.button) === -1){
+                    if(p.type !== PointerEventTypes.POINTERMOVE && this.buttons.indexOf(evt.button) === -1){
                         return;
                     }