webvr-polyfill
Advanced tools
Comparing version 0.9.39 to 0.9.40
{ | ||
"name": "webvr-polyfill", | ||
"version": "0.9.39", | ||
"version": "0.9.40", | ||
"homepage": "https://github.com/googlevr/webvr-polyfill", | ||
@@ -17,3 +17,3 @@ "authors": [ | ||
"webpack": "^2.6.1", | ||
"webpack-dev-server": "^2.4.5" | ||
"webpack-dev-server": "2.7.1" | ||
}, | ||
@@ -20,0 +20,0 @@ "main": "src/node-entry", |
@@ -142,4 +142,9 @@ /* | ||
} | ||
this.accelerometer.set(-accGravity.x, -accGravity.y, -accGravity.z); | ||
this.gyroscope.set(rotRate.alpha, rotRate.beta, rotRate.gamma); | ||
if (Util.isR7()) { | ||
this.gyroscope.set(-rotRate.beta, rotRate.alpha, rotRate.gamma); | ||
} else { | ||
this.gyroscope.set(rotRate.alpha, rotRate.beta, rotRate.gamma); | ||
} | ||
@@ -146,0 +151,0 @@ // With iOS and Firefox Android, rotationRate is reported in degrees, |
@@ -83,4 +83,12 @@ /* | ||
Util.isR7 = (function() { | ||
var isR7 = navigator.userAgent.indexOf('R7 Build') !== -1; | ||
return function() { | ||
return isR7; | ||
}; | ||
})(); | ||
Util.isLandscapeMode = function() { | ||
return (window.orientation == 90 || window.orientation == -90); | ||
var rtn = (window.orientation == 90 || window.orientation == -90); | ||
return Util.isR7() ? !rtn : rtn; | ||
}; | ||
@@ -87,0 +95,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40
886086
11136
6