ShadowRoot: pointerLockElement-Eigenschaft
Die schreibgeschützte pointerLockElement
-Eigenschaft des ShadowRoot
-Interfaces gibt das Element an, das als Ziel für Mausereignisse festgelegt ist, während der Zeiger gesperrt ist.
Es ist null
, wenn die Sperre aussteht, der Zeiger entsperrt ist oder das Ziel sich in einem anderen Baum befindet.
Wert
Ein Element
oder null
.
Beispiele
js
let customElem = document.querySelector("my-shadow-dom-element");
let shadow = customElem.shadowRoot;
let pleElem = shadow.pointerLockElement;
Spezifikationen
Specification |
---|
Pointer Lock 2.0 # dom-documentorshadowroot-pointerlockelement |
Browser-Kompatibilität
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
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.