webvr-polyfill
Advanced tools
Comparing version 0.9.40 to 0.9.41
{ | ||
"name": "webvr-polyfill", | ||
"version": "0.9.40", | ||
"version": "0.9.41", | ||
"homepage": "https://github.com/googlevr/webvr-polyfill", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -15,3 +15,3 @@ # WebVR Polyfill | ||
[cr]: https://drive.google.com/folderview?id=0BzudLt22BqGRbW9WTHMtOWMzNjQ | ||
[samples]: https://toji.github.io/webvr-samples/ | ||
[samples]: https://webvr.info/samples/ | ||
[spec]: https://mozvr.github.io/webvr-spec/ | ||
@@ -18,0 +18,0 @@ |
@@ -37,7 +37,12 @@ /* | ||
this.onKeyDown_ = this.onKeyDown_.bind(this); | ||
this.onMouseDown_ = this.onMouseDown_.bind(this); | ||
this.onMouseMove_ = this.onMouseMove_.bind(this); | ||
this.onMouseUp_ = this.onMouseUp_.bind(this); | ||
// Attach to mouse and keyboard events. | ||
window.addEventListener('keydown', this.onKeyDown_.bind(this)); | ||
window.addEventListener('mousemove', this.onMouseMove_.bind(this)); | ||
window.addEventListener('mousedown', this.onMouseDown_.bind(this)); | ||
window.addEventListener('mouseup', this.onMouseUp_.bind(this)); | ||
window.addEventListener('keydown', this.onKeyDown_); | ||
window.addEventListener('mousemove', this.onMouseMove_); | ||
window.addEventListener('mousedown', this.onMouseDown_); | ||
window.addEventListener('mouseup', this.onMouseUp_); | ||
@@ -44,0 +49,0 @@ // "Private" members. |
@@ -6,6 +6,10 @@ // This is the entry point if requiring/importing via node, or | ||
if (typeof global !== 'undefined' && global.window) { | ||
global.document = global.window.document; | ||
global.navigator = global.window.navigator; | ||
if (!global.document) { | ||
global.document = global.window.document; | ||
} | ||
if (!global.navigator) { | ||
global.navigator = global.window.navigator; | ||
} | ||
} | ||
require('./main'); |
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
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
887135
11151