pointerLockElement property

Element? get pointerLockElement

The pointerLockElement read-only property of the ShadowRoot interface provides the element set as the target for mouse events while the pointer is locked. It is null if lock is pending, pointer is unlocked, or the target is in another tree.

Implementation

external Element? get pointerLockElement;