johnmccutchan/game_loop — pull request #38 by laszlokorte (2013-07-16 12:08:32+00:00)
Title: use webkit api if pointer lock is enabled.

In https://github.com/johnmccutchan/game_loop/pull/35 the use of event.movement was removed for compatibility reasons.

It seems like the introduced workaround does not work when pointerlock is enabled because mouseEvent.client.x/y does not changed during the cursor is locked.

I suggest still using the movement when the pointer is locked is enabled.