← Back to release summary

PointerLock unadjustedMovement

Category
User input
Type
New or changed feature
Status
Enabled by default (Chrome 81)
Intent stage
Shipped

Summary

Adds the ability to request unadjusted/unaccelerated mouse movement data when in PointerLock. If this unadjustedMovement is set to true, then the pointer movements will not be affected by the underlying platform modifications such as mouse acceleration.

Motivation

The accelerated movement is that pointer speed increasing quadratically based on the physical speed of the touchpad/mouse movement. For example moving the touchpad/mouse 3x faster could result in the pointer on the screen moving 9x more than if moved at a slower speed. Accelerated movement is the default behavior in the major operating systems. However, for some games, it’s important to disable mouse acceleration to achieve a better gaming experience. It’s a common option for native gaming app but not available in web gaming yet.

Standards & signals

Docs: https://web.dev/disable-mouse-acceleration/

Explainers: https://docs.google.com/document/d/17pvFMFqtAIx0ZA6zMZRU_A2-VnjhNX9QlN1Cgy-3Wdg/edit

View on chromestatus.com