webvr-polyfill
Advanced tools
Comparing version 0.9.14 to 0.9.15
{ | ||
"name": "webvr-polyfill", | ||
"version": "0.9.14", | ||
"version": "0.9.15", | ||
"homepage": "https://github.com/borismus/webvr-polyfill", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -191,3 +191,5 @@ /* | ||
if (screen.orientation && screen.orientation.lock) { | ||
screen.orientation.lock('landscape-primary'); | ||
screen.orientation.lock('landscape-primary').catch(function(error){ | ||
console.error('screen.orientation.lock() failed due to', error.message) | ||
}); | ||
} | ||
@@ -194,0 +196,0 @@ self.waitingForPresent_ = false; |
@@ -228,2 +228,6 @@ /* | ||
// Size the CSS canvas. | ||
// Added padding on right and bottom because iPhone 5 will not | ||
// hide the URL bar unless content is bigger than the screen. | ||
// This will not be visible as long as the container element (e.g. body) | ||
// is set to 'overflow: hidden'. | ||
var cssProperties = [ | ||
@@ -237,3 +241,3 @@ 'position: absolute', | ||
'margin: 0', | ||
'padding: 0', | ||
'padding: 0 10px 10px 0', | ||
]; | ||
@@ -240,0 +244,0 @@ gl.canvas.setAttribute('style', cssProperties.join('; ') + ';'); |
@@ -107,6 +107,6 @@ /* | ||
if (Util.isIOS()) { | ||
console.warn('Using fallback Android device measurements.'); | ||
console.warn('Using fallback iOS device measurements.'); | ||
return DEFAULT_IOS; | ||
} else { | ||
console.warn('Using fallback iOS device measurements.'); | ||
console.warn('Using fallback Android device measurements.'); | ||
return DEFAULT_ANDROID; | ||
@@ -113,0 +113,0 @@ } |
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
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
809792
13605