Viva javascript
This commit is contained in:
parent
f0e4455bc2
commit
9cf486a5c2
|
@ -151,7 +151,7 @@ function editorHelper(templateName) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
module.exports.clicker = editorHelper('prototype_clicker.jade');
|
module.exports.clicker = editorHelper('prototype_clicker.jade');
|
||||||
module.exports.viewer = editorHelper('prototype_viewer.jade');
|
module.exports.viewer = editorHelper('prototype_viewer.jade');
|
||||||
|
|
|
@ -210,8 +210,7 @@ L3D.PointerCamera.prototype.lockPointer = function() {
|
||||||
* @returns true if the pointer is locked, false otherwise
|
* @returns true if the pointer is locked, false otherwise
|
||||||
*/
|
*/
|
||||||
L3D.PointerCamera.prototype.isLocked = function() {
|
L3D.PointerCamera.prototype.isLocked = function() {
|
||||||
return
|
return document.pointerLockElement === this.renderer.domElement ||
|
||||||
document.pointerLockElement === this.renderer.domElement ||
|
|
||||||
document.mozPointerLockElement === this.renderer.domElement ||
|
document.mozPointerLockElement === this.renderer.domElement ||
|
||||||
document.webkitPointerLockElement === this.renderer.domElement;
|
document.webkitPointerLockElement === this.renderer.domElement;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue