aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/globaleventhandlers/onlostpointercapture/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/api/globaleventhandlers/onlostpointercapture/index.html')
-rw-r--r--files/pt-br/web/api/globaleventhandlers/onlostpointercapture/index.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/files/pt-br/web/api/globaleventhandlers/onlostpointercapture/index.html b/files/pt-br/web/api/globaleventhandlers/onlostpointercapture/index.html
new file mode 100644
index 0000000000..8df6a32e69
--- /dev/null
+++ b/files/pt-br/web/api/globaleventhandlers/onlostpointercapture/index.html
@@ -0,0 +1,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>