diff options
Diffstat (limited to 'files/ja/web/api/htmlelement/pointerover_event/index.html')
-rw-r--r-- | files/ja/web/api/htmlelement/pointerover_event/index.html | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/files/ja/web/api/htmlelement/pointerover_event/index.html b/files/ja/web/api/htmlelement/pointerover_event/index.html new file mode 100644 index 0000000000..cf37b5be9a --- /dev/null +++ b/files/ja/web/api/htmlelement/pointerover_event/index.html @@ -0,0 +1,89 @@ +--- +title: 'HTMLElement: pointerover イベント' +slug: Web/API/HTMLElement/pointerover_event +tags: + - DOM + - Event + - PointerEvent + - Reference +translation_of: Web/API/HTMLElement/pointerover_event +--- +<div>{{APIRef}}</div> + +<p><code>pointerover</code> イベントは、ポインティングデバイスが要素のヒットテスト境界内に移動したときに発生します。</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">バブリング</th> + <td>あり</td> + </tr> + <tr> + <th scope="row">キャンセル</th> + <td>可</td> + </tr> + <tr> + <th scope="row">インターフェイス</th> + <td>{{domxref("PointerEvent")}}</td> + </tr> + <tr> + <th scope="row">イベントハンドラプロパティ</th> + <td><code><a href="/ja/docs/Web/API/GlobalEventHandlers/onpointerover">onpointerover</a></code></td> + </tr> + </tbody> +</table> + +<h2 id="Examples" name="Examples">例</h2> + +<p><code>addEventListener()</code> を使用する場合</p> + +<pre class="brush: js">const para = document.querySelector('p'); + +para.addEventListener('pointerover', (event) => { + console.log('ポインタが内に移動しました'); +});</pre> + +<p><code>onpointerover</code> イベントハンドラプロパティを使用する場合</p> + +<pre class="brush: js">const para = document.querySelector('p'); + +para.onpointerover = (event) => { + console.log('ポインタが内に移動しました'); +};</pre> + +<h2 id="Specifications" name="Specifications">仕様</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">仕様</th> + <th scope="col">状態</th> + </tr> + <tr> + <td>{{SpecName('Pointer Events', '#the-pointerover-event')}}</td> + <td>{{Spec2('Pointer Events')}}</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> + + + +<p>{{Compat("api.HTMLElement.pointerover_event")}}</p> + +<h2 id="See_also" name="See_also">関連情報</h2> + +<ul> + <li><code><a href="/ja/docs/Web/API/HTMLElement/gotpointercapture_event">gotpointercapture</a></code></li> + <li><code><a href="/ja/docs/Web/API/HTMLElement/lostpointercapture_event">lostpointercapture</a></code></li> + <li><code><a href="/ja/docs/Web/API/HTMLElement/pointerenter_event">pointerenter</a></code></li> + <li><code><a href="/ja/docs/Web/API/HTMLElement/pointerdown_event">pointerdown</a></code></li> + <li><code><a href="/ja/docs/Web/API/HTMLElement/pointermove_event">pointermove</a></code></li> + <li><code><a href="/ja/docs/Web/API/HTMLElement/pointerup_event">pointerup</a></code></li> + <li><code><a href="/ja/docs/Web/API/HTMLElement/pointercancel_event">pointercancel</a></code></li> + <li><code><a href="/ja/docs/Web/API/HTMLElement/pointerout_event">pointerout</a></code></li> + <li><code><a href="/ja/docs/Web/API/HTMLElement/pointerleave_event">pointerleave</a></code></li> + <li><code><a href="/ja/docs/Web/API/GlobalEventHandlers/onpointerover">onpointerover</a></code> イベントハンドラプロパティ</li> + <li><code>Document</code> でのこのイベント: <code><a href="/ja/docs/Web/API/Document/pointerover_event">pointerover</a></code> イベント</li> +</ul> |