Document: pointerlockchange event

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The pointerlockchange event is fired when the pointer is locked/unlocked.

The event handler can use Document.pointerLockElement to determine whether the pointer is locked, and if so, to which element it is locked.

This event is not cancelable and does not bubble.