New line in return... muhuhaha (thanks Émilie)
This commit is contained in:
parent
9cf486a5c2
commit
76d65303bf
|
@ -210,9 +210,11 @@ 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 document.pointerLockElement === this.renderer.domElement ||
|
return (
|
||||||
|
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