cardboard-vr-display
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "cardboard-vr-display", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"homepage": "https://github.com/immersive-web/cardboard-vr-display", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -25,2 +25,5 @@ /* | ||
var raf = window.requestAnimationFrame; | ||
var caf = window.cancelAnimationFrame; | ||
/** | ||
@@ -150,7 +153,7 @@ * The base class for all VR frame data. | ||
VRDisplay.prototype.requestAnimationFrame = function(callback) { | ||
return window.requestAnimationFrame(callback); | ||
return raf(callback); | ||
}; | ||
VRDisplay.prototype.cancelAnimationFrame = function(id) { | ||
return window.cancelAnimationFrame(id); | ||
return caf(id); | ||
}; | ||
@@ -157,0 +160,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
7370
406342
28