From 76d65303bf60d57002b74b3d4d75eaa10fff3065 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Thu, 27 Aug 2015 09:22:37 +0200 Subject: [PATCH] =?UTF-8?q?New=20line=20in=20return...=20muhuhaha=20(thank?= =?UTF-8?q?s=20=C3=89milie)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/l3d/src/cameras/PointerCamera.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/l3d/src/cameras/PointerCamera.js b/js/l3d/src/cameras/PointerCamera.js index 6de3d43..f819190 100644 --- a/js/l3d/src/cameras/PointerCamera.js +++ b/js/l3d/src/cameras/PointerCamera.js @@ -210,9 +210,11 @@ L3D.PointerCamera.prototype.lockPointer = function() { * @returns true if the pointer is locked, false otherwise */ L3D.PointerCamera.prototype.isLocked = function() { - return document.pointerLockElement === this.renderer.domElement || + return ( + document.pointerLockElement === this.renderer.domElement || document.mozPointerLockElement === this.renderer.domElement || - document.webkitPointerLockElement === this.renderer.domElement; + document.webkitPointerLockElement === this.renderer.domElement + ); };