Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web/API/HTMLElement/drag_event を更新 #23595

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2023/11/29 時点の英語版に基づき更新
  • Loading branch information
mfuji09 committed Sep 16, 2024
commit cb3448c854d88e9328cb7c2a2fa4fbf26d56893a
25 changes: 10 additions & 15 deletions files/ja/web/api/htmlelement/drag_event/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
---
title: "HTMLElement: drag イベント"
short-title: drag
slug: Web/API/HTMLElement/drag_event
l10n:
sourceCommit: a3d9f61a8990ba7b53bda9748d1f26a9e9810b18
sourceCommit: 689be3910aa020e10ca58a81a4c9190a5819f4f2
---

{{APIRef}}

`drag` イベントは、要素や選択されたテキストをユーザーがドラッグしている間に、数百ミリ秒ごとに発生します。

このイベントはキャンセル可能で、{{domxref("Document")}} オブジェクトと {{domxref("Window")}} オブジェクトまでバブルアップする可能性があります。

## 構文

このイベント名を {{domxref("EventTarget.addEventListener", "addEventListener()")}} のようなメソッドで使用するか、イベントハンドラープロパティを設定するかします。
Expand Down Expand Up @@ -148,17 +151,9 @@ target.addEventListener("drop", (event) => {

## 関連情報

- その他のドラッグ&ドロップイベント:

- {{domxref("HTMLElement/dragstart_event", "dragstart")}}
- {{domxref("HTMLElement/dragend_event", "dragend")}}
- {{domxref("HTMLElement/dragover_event", "dragover")}}
- {{domxref("HTMLElement/dragenter_event", "dragenter")}}
- {{domxref("HTMLElement/dragleave_event", "dragleave")}}
- {{domxref("HTMLElement/drop_event", "drop")}}

- 他のターゲットにおけるこのイベント:

- {{domxref("Window")}}: {{domxref("Window/drag_event", "drag")}} イベント
- {{domxref("Document")}}: {{domxref("Document/drag_event", "drag")}} イベント
- {{domxref("SVGElement")}}: {{domxref("SVGElement/drag_event", "drag")}} イベント
- {{domxref("HTMLElement/dragstart_event", "dragstart")}}
- {{domxref("HTMLElement/dragend_event", "dragend")}}
- {{domxref("HTMLElement/dragover_event", "dragover")}}
- {{domxref("HTMLElement/dragenter_event", "dragenter")}}
- {{domxref("HTMLElement/dragleave_event", "dragleave")}}
- {{domxref("HTMLElement/drop_event", "drop")}}