aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/globaleventhandlers/onpointercancel/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/globaleventhandlers/onpointercancel/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/globaleventhandlers/onpointercancel/index.html')
-rw-r--r--files/ja/web/api/globaleventhandlers/onpointercancel/index.html90
1 files changed, 90 insertions, 0 deletions
diff --git a/files/ja/web/api/globaleventhandlers/onpointercancel/index.html b/files/ja/web/api/globaleventhandlers/onpointercancel/index.html
new file mode 100644
index 0000000000..e3483ae38b
--- /dev/null
+++ b/files/ja/web/api/globaleventhandlers/onpointercancel/index.html
@@ -0,0 +1,90 @@
+---
+title: GlobalEventHandlers.onpointercancel
+slug: Web/API/GlobalEventHandlers/onpointercancel
+tags:
+ - API
+ - Event Handler
+ - GlobalEventHandlers
+ - HTML DOM
+ - PointerEvent
+ - Property
+ - Reference
+translation_of: Web/API/GlobalEventHandlers/onpointercancel
+---
+<div>{{ApiRef("HTML DOM")}}</div>
+
+<p><span class="seoSummary"><strong><code>onpointercancel</code></strong> は {{domxref("GlobalEventHandlers")}} ミックスインのプロパティで、 {{event("pointercancel")}} イベントを処理する {{domxref("EventHandler")}} です。</span></p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox notranslate"><var>targetElement</var>.onpointercancel = <var>cancelHandler</var>;
+
+var <var>cancelHandler</var> = <var>targetElement</var>.onpointercancel;
+</pre>
+
+<h3 id="Value" name="Value">値</h3>
+
+<dl>
+ <dt><code>cancelHandler</code></dt>
+ <dd>要素 <code>targetElement</code> の <code>pointercancel</code> イベントハンドラ。</dd>
+</dl>
+
+<h2 id="Example" name="Example">例</h2>
+
+<p>この例では、<code>onpointercancel</code> を使用して要素の <code>pointercancel</code> イベントを処理する2つの方法を示します。</p>
+
+<pre class="brush: js notranslate">&lt;html&gt;
+&lt;script&gt;
+function cancelHandler(ev) {
+ // pointercancel イベントの処理
+}
+function init() {
+ var el = document.getElementById('target1');
+ el.onpointercancel = cancelHandler;
+}
+&lt;/script&gt;
+
+&lt;body onload="init();"&gt;
+ &lt;div id="target1"&gt; Touch me ... &lt;/div&gt;
+ &lt;div id="target2" onpointercancel="cancelHandler(event)"&gt; Touch me ... &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+</pre>
+
+<h2 id="Specification" name="Specification">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('Pointer Events 2','#dom-globaleventhandlers-onpointercancel', 'onpointercancel')}}</td>
+ <td>{{Spec2('Pointer Events 2')}}</td>
+ <td>不安定版</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('Pointer Events', '#widl-GlobalEventHandlers-onpointercancel', 'onpointercancel')}}</td>
+ <td>{{Spec2('Pointer Events')}}</td>
+ <td>初回定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>
+
+<p>{{Compat("api.GlobalEventHandlers.onpointercancel")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li><code><a href="/ja/docs/Web/API/Document/pointercancel_event">Document: pointercancel</a></code> イベント</li>
+ <li><code><a href="/ja/docs/Web/API/HTMLElement/pointercancel_event">HTMLElement: pointercancel</a></code> イベント</li>
+ <li>{{domxref("Element.setPointerCapture()")}}</li>
+</ul>