Document.pointerLockElement
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
La propiedad pointerLockElement
conserva el elemento adquirido, para el evento del mouse, mientras el bloqueo se encuentre activo . Es null
si el bloqueo se encuentra en estado pendiente para bloqueo, o si el bloqueo se ha liberado, es decir ya no se encuentra en estado bloqueado, o si el elemento bloqueado se encuentra en otro documento.
Sintaxis
js
var elemento = document.pointerLockElement;
Valor retornado
Un Element
o null
.
Especificaciones
Specification |
---|
Pointer Lock 2.0 # dom-documentorshadowroot-pointerlockelement |
Compatibilidad del Navegador
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
pointerLockElement |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Requires a vendor prefix or different name for use.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.