Closed Bug 750245 Opened 12 years ago Closed 12 years ago

Mouse lock pointer not working for quake demo

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: virgil.dicu, Unassigned)

References

Details

Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120429 Firefox/14.0a2

1. Make sure the "full-screen-api.pointer-lock.enabled" pref.
2. Load http://media.tojicode.com/q3bsp/
3. Enter full screen using the full screen button in the lower right part of the video.

Expected: Mouse should control movement without moving the cursor around. 
Actual: Demo is displayed on a quarter of the screen. Mouse lock pointer not working.
This is throwing:

[10:27:55.841] NS_ERROR_XPC_BAD_OP_ON_WN_PROTO: Illegal operation on WrappedNative prototype object @ http://media.tojicode.com/q3bsp/js/main.js:323

Which is:

    viewport.addEventListener("click", function(event) {
-->      viewport.requestPointerLock();
    }, false);
Issue with the demo's code, now fixed.

https://twitter.com/#!/Tojiro/status/197000050440798208
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.