From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../ongotpointercapture/index.html | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 files/ja/web/api/globaleventhandlers/ongotpointercapture/index.html (limited to 'files/ja/web/api/globaleventhandlers/ongotpointercapture') diff --git a/files/ja/web/api/globaleventhandlers/ongotpointercapture/index.html b/files/ja/web/api/globaleventhandlers/ongotpointercapture/index.html new file mode 100644 index 0000000000..170fdf6e02 --- /dev/null +++ b/files/ja/web/api/globaleventhandlers/ongotpointercapture/index.html @@ -0,0 +1,70 @@ +--- +title: GlobalEventHandlers.ongotpointercapture +slug: Web/API/GlobalEventHandlers/ongotpointercapture +tags: + - API + - Event Handler + - GlobalEventHandlers + - HTML DOM + - Property + - Reference + - events + - ongotpointercapture +translation_of: Web/API/GlobalEventHandlers/ongotpointercapture +--- +
{{ApiRef("HTML DOM")}}
+ +

ongotpointercapture は {{domxref("GlobalEventHandlers")}} ミックスインのプロパティで、 {{event("gotpointercapture")}} イベントを処理する {{domxref("EventHandler")}} です。

+ +

構文

+ +
target.ongotpointercapture = functionRef;
+ +

+ +

functionRef は、関数名または関数式です。 関数は {{domxref("PointerEvent")}} オブジェクトを唯一の引数として受け取ります。

+ +

+ +
function overHandler(event) {
+  // ターゲットイベントの gotpointercapture ハンドラを決定します
+  let gotCaptureHandler = event.target.ongotpointercapture;
+}
+
+function init() {
+  let el = document.getElementById('target');
+  el.ongotpointercapture = overHandler;
+}
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Pointer Events 2', '#the-gotpointercapture-event', 'ongotpointercapture')}}{{Spec2('Pointer Events 2')}}
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.GlobalEventHandlers.ongotpointercapture")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf