Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Document
  4. exitPointerLock()

Document: exitPointerLock() method

Limited availability

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

TheexitPointerLock() method of theDocument interface asynchronously releases a pointer lock previously requested throughElement.requestPointerLock.

Note:While theexitPointerLock() method is called on the document, therequestPointerLock() method is called on an element.

To track the success or failure of the request, it is necessary to listen for thepointerlockchange andpointerlockerror events.

Syntax

js
exitPointerLock()

Parameters

None.

Return value

None (undefined).

Specifications

Specification
Pointer Lock 2.0
# dom-document-exitpointerlock

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp