Document: pointerlockerror event

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 참여해서 번역을 마치도록 도와 주세요!
English (US)의 문서도 읽어보세요.

The pointerlockerror event is fired when locking the pointer failed (for technical reasons or because the permission was denied).

Bubbles Yes
Cancelable No
Interface Event
Event handler property onpointerlockerror

Examples

Using addEventListener():

const para = document.querySelector('p');

document.addEventListener('pointerlockerror', (event) => {
  console.log('Error locking pointer');
});

Using the onpointerlockerror event handler property:

document.onpointerlockerror = (event) => {
  console.log('Error locking pointer');
};

Specifications

Specification Status
Pointer Lock Candidate Recommendation

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
pointerlockerror event
Experimental
Chrome Full support 45
Full support 45
No support 22 — 45
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android Full support 45
Full support 45
No support ? — 45
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Chrome Android Full support 45
Full support 45
No support 25 — 45
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
Requires a vendor prefix or different name for use.
Requires a vendor prefix or different name for use.

See also

문서 태그 및 공헌자

이 페이지의 공헌자: mdnwebdocs-bot, mfuji09, wbamberg, fscholz, teoli, Sheppy, ethertank, louisremi
최종 변경자: mdnwebdocs-bot,