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.