Explorar o código

Merge pull request #1117 from wpdildine/master

Coerced Type Causes Quantization Errors
David Catuhe %!s(int64=9) %!d(string=hai) anos
pai
achega
25e6d6928b

+ 3 - 3
src/Cameras/Inputs/babylon.freecamera.input.vrdeviceorientation.ts

@@ -24,9 +24,9 @@ module BABYLON {
 
         public _onOrientationEvent(evt: DeviceOrientationEvent): void {
             var camera = this.camera;
-            this._alpha = +evt.alpha | 0;
-            this._beta = +evt.beta | 0;
-            this._gamma = +evt.gamma | 0;
+            this._alpha = evt.alpha;
+            this._beta = evt.beta;
+            this._gamma = evt.gamma;
             this._dirty = true;
         }