aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/globaleventhandlers/onlostpointercapture/index.html
blob: 8df6a32e69614bfc362ee6ea4fd73cc1e2afe1f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
title: GlobalEventHandlers.onlostpointercapture
slug: Web/API/GlobalEventHandlers/onlostpointercapture
tags:
  - API
  - DOM
  - Event Handler
  - GlobalEventHandlers
  - HTML
  - Propriedade
  - Referencia
  - events
  - onlostpointercapture
translation_of: Web/API/GlobalEventHandlers/onlostpointercapture
---
<div>{{ApiRef("HTML DOM")}}</div>

<p>A propriedade <strong><code>onlostpointercapture</code></strong> do mixin {{domxref("GlobalEventHandlers")}} é uma {{domxref("EventHandler")}} que processa eventos {{event("lostpointercapture")}}.</p>

<h2 id="Syntax" name="Syntax">Sintaxe</h2>

<pre class="syntaxbox"><em>target</em>.onlostpointercapture = <em>functionRef</em>;</pre>

<h3 id="Value">Value</h3>

<p><code>functionRef</code> é o nome de uma função ou uma <a href="/pt-BR/docs/Web/JavaScript/Reference/Operators/function">expressão de função</a>. A função recebe um objeto {{domxref("PointerEvent")}} como seu único argumento.</p>

<h2 id="Exemplo">Exemplo</h2>

<pre class="brush: js">function overHandler(event) {
  // Determinar o manipulador lostpointercapture para o evento alvo (<em>target event</em>).
  let lostCaptureHandler = event.target.onlostpointercapture;
}

function init() {
  let el = document.getElementById('target');
  el.onlostpointercapture = overHandler;
}
</pre>

<h2 id="Especificações">Especificações</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('Pointer Events 2', '#the-lostpointercapture-event', 'onlostpointercapture')}}</td>
   <td>{{Spec2('Pointer Events 2')}}</td>
   <td></td>
  </tr>
 </tbody>
</table>

<h2 id="Compatibilidade_de_Navegador">Compatibilidade de Navegador</h2>



<p>{{Compat("api.GlobalEventHandlers.onlostpointercapture")}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>Evento <code><a href="/pt-BR/docs/Web/API/Document/lostpointercapture_event">Document: lostpointercapture</a></code></li>
 <li>Evento <code><a href="/pt-BR/docs/Web/API/HTMLElement/lostpointercapture_event">HTMLElement: lostpointercapture</a></code></li>
 <li>{{domxref("Element.releasePointerCapture()")}}</li>
</ul>