From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../ja/web/api/navigator/maxtouchpoints/index.html | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 files/ja/web/api/navigator/maxtouchpoints/index.html (limited to 'files/ja/web/api/navigator/maxtouchpoints') diff --git a/files/ja/web/api/navigator/maxtouchpoints/index.html b/files/ja/web/api/navigator/maxtouchpoints/index.html new file mode 100644 index 0000000000..55418aaed1 --- /dev/null +++ b/files/ja/web/api/navigator/maxtouchpoints/index.html @@ -0,0 +1,58 @@ +--- +title: Navigator.maxTouchPoints +slug: Web/API/Navigator/maxTouchPoints +tags: + - API + - DOM + - Navigator + - Property + - Reference + - maxTouchPoints + - ポインターイベント +translation_of: Web/API/Navigator/maxTouchPoints +--- +
{{APIRef("HTML DOM")}}
+ +

{{domxref("Navigator")}} インターフェイスの maxTouchPoints プロパティは読み取り専用で、現在の端末で対応している同時タッチコンタクト点の最大数を返します。

+ +

構文

+ +
touchPoints = navigator.maxTouchPoints;
+
+ +

+ +
if (navigator.maxTouchPoints > 1) {
+  // ブラウザーがマルチタッチに対応
+}
+
+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Pointer Events 2','#extensions-to-the-navigator-interface', 'maxTouchPoints')}}{{Spec2('Pointer Events 2')}}非安定バージョン。
{{SpecName('Pointer Events', '#extensions-to-the-navigator-interface', 'maxTouchPoints')}}{{Spec2('Pointer Events')}}初回定義
+ +

ブラウザーの対応

+ + + +
{{Compat("api.Navigator.maxTouchPoints")}}
-- cgit v1.2.3-54-g00ecf