New line in return... muhuhaha (thanks Émilie)

This commit is contained in:
Thomas FORGIONE 2015-08-27 09:22:37 +02:00
parent 9cf486a5c2
commit 76d65303bf
1 changed files with 4 additions and 2 deletions

View File

@ -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
);
}; };