RESOLVED DUPLICATE of bug 91186 97722
webkitPointerLockElement returns NULL until accepted.
https://bugs.webkit.org/show_bug.cgi?id=97722
Summary webkitPointerLockElement returns NULL until accepted.
Vincent Scheib
Reported 2012-09-26 13:24:41 PDT
Reproduce on Chrome via: 1. use a blank profile, or clear mouse content settings 2. http://scheib.github.com/HTMLMisc/PointerLockAndFullscreen.html 3. Press "Pointer Lock Target1", but do NOT Accept mouse lock 4. Click to Lock the mouse again. Expected: Text on page reads: document.webkitPointerLockElement unlocked Actual: document.webkitPointerLockElement locked to target1 Work around: Apps track if they have already requested pointer lock and do not send an additional request when one is pending and hasn't received a change or error event. Related Chrome issue https://code.google.com/p/chromium/issues/detail?id=152509
Attachments
Vincent Scheib
Comment 1 2012-10-01 12:29:34 PDT
*** This bug has been marked as a duplicate of bug 91186 ***
Note You need to log in before you can comment on or make changes to this bug.