GlobalEventHandlers.onlostpointercapture
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since julho de 2020.
A propriedade onlostpointercapture do mixin GlobalEventHandlers é uma event handler que processa eventos lostpointercapture.
Sintaxe
target.onlostpointercapture = functionRef;
Value
functionRef é o nome de uma função ou uma expressão de função. A função recebe um objeto PointerEvent como seu único argumento.
Exemplo
js
function overHandler(event) {
// Determinar o manipulador lostpointercapture para o evento alvo (target event).
let lostCaptureHandler = event.target.onlostpointercapture;
}
function init() {
let el = document.getElementById("target");
el.onlostpointercapture = overHandler;
}
Especificações
| Specification |
|---|
| Pointer Events> # the-lostpointercapture-event> |
| Pointer Events> # dom-globaleventhandlers-onlostpointercapture> |
Compatibilidade com navegadores
Loading…