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 July 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
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
lostpointercapture event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full 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.