Pointer Lock (Mouse Lock)

Gives access to raw mouse movement, locks the target of mouse events to a single element, eliminates limits of how far mouse movement can go in a single direction, and removes the cursor from view. Obvious use cases are for first person or real time strategy games.


Chrome on Android does not support this API.



Working draft or equivalent

Status in Chromium

Enabled by default (launch bug) in:

  • Chrome for desktop release 23
  • Opera release 15
  • Opera for Android release 15

Consensus & Standardization


Last updated on 2017-01-25