aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/touchlist
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/touchlist
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/touchlist')
-rw-r--r--files/ja/web/api/touchlist/index.html74
-rw-r--r--files/ja/web/api/touchlist/length/index.html24
2 files changed, 98 insertions, 0 deletions
diff --git a/files/ja/web/api/touchlist/index.html b/files/ja/web/api/touchlist/index.html
new file mode 100644
index 0000000000..94e83d9a8c
--- /dev/null
+++ b/files/ja/web/api/touchlist/index.html
@@ -0,0 +1,74 @@
+---
+title: TouchList
+slug: Web/API/TouchList
+tags:
+ - API
+ - DOM
+ - DOM Reference
+ - Mobile
+ - Reference
+ - Touch Event
+ - TouchList
+ - touch
+translation_of: Web/API/TouchList
+---
+<p>{{APIRef("Touch Events")}}</p>
+
+<p><strong><code>TouchList</code></strong> インターフェイスは、タッチ面上の接触点のリストを表します。例えば、ユーザーがタッチ面 (画面やトラックパッドなど) を 3 本指で操作している場合、対応する <code>TouchList</code> オブジェクトは 1 本の指あたり 1 つの {{domxref("Touch")}} オブジェクトを持ち、全部で 3 要素になります。</p>
+
+<h2 id="Properties" name="Properties">プロパティ</h2>
+
+<dl>
+ <dt>{{domxref("TouchList.length")}} {{readonlyInline}}</dt>
+ <dd><code>TouchList</code> 中の {{domxref("Touch")}} オブジェクトの個数</dd>
+</dl>
+
+<h2 id="Methods" name="Methods">メソッド</h2>
+
+<dl>
+ <dt>{{domxref("TouchList.identifiedTouch()")}}</dt>
+ <dd>識別子が指定された値と一致するリスト内の、最初の {{domxref("Touch")}} 要素を返す</dd>
+ <dt>{{domxref("TouchList.item()")}}</dt>
+ <dd>リスト内の指定した位置の {{domxref("Touch")}} オブジェクトを返します。</dd>
+</dl>
+
+<h2 id="Example" name="Example">例</h2>
+
+<p><a href="/ja/docs/Web/API/Touch_events#Example">タッチイベントのメイン記事にある例</a>をご覧ください。</p>
+
+<h2 id="Specifications" name="Specifications">仕様書</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('Touch Events 2','#touchlist-interface')}}</td>
+ <td>{{Spec2('Touch Events 2')}}</td>
+ <td>Non-stable version.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('Touch Events', '#touchlist-interface')}}</td>
+ <td>{{Spec2('Touch 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.TouchList")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li><a href="/ja/docs/Web/API/Touch_events">タッチイベント</a></li>
+ <li>{{domxref("Document.createTouchList()")}}</li>
+</ul>
diff --git a/files/ja/web/api/touchlist/length/index.html b/files/ja/web/api/touchlist/length/index.html
new file mode 100644
index 0000000000..9f8be4df0e
--- /dev/null
+++ b/files/ja/web/api/touchlist/length/index.html
@@ -0,0 +1,24 @@
+---
+title: TouchList.length
+slug: Web/API/TouchList/length
+tags:
+ - DOM
+ - Gecko DOM Reference
+ - Mobile
+ - touch
+translation_of: Web/API/TouchList/length
+---
+<div>
+ {{ApiRef}}</div>
+<h2 id="Summary" name="Summary">概要</h2>
+<p>この読取専用プロパティは {{domxref("TouchList")}} 内の項目数を表します。</p>
+<h2 id="Syntax" name="Syntax">構文</h2>
+<pre class="syntaxbox"><var>numTouches</var> = <em>touchList</em>.length;
+</pre>
+<ul>
+ <li><code>numTouches</code> : {{domxref("TouchList")}} 内の {{domxref("Touch")}} オブジェクトの個数を表す整数値</li>
+</ul>
+<h2 id="Specification" name="Specification">仕様</h2>
+<ul>
+ <li><a href="http://www.w3.org/TR/touch-events/" title="http://www.w3.org/TR/touch-events/">Touch Events Specification</a></li>
+</ul>