調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >IDragger >onDrag
IDragger.onDrag() メソッド
ドラッグの処理(要素の実際の移動先の計算など)。
署名:
onDrag(e: PointerEvent, totalDelta: Coordinate): void;
パラメータ
パラメータ |
型 |
説明 |
e |
PointerEvent |
ドラッグを継続した PointerEvent。 |
totalDelta |
座標 |
ドラッグの開始からマウスが移動した合計距離(ピクセル単位)。 |
戻り値:
void
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-12 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-09-12 UTC。"],[[["The `onDrag` method in Blockly's IDragger interface manages the dragging behavior of elements, determining their updated positions."],["This method takes a PointerEvent and total distance moved as input, using them to calculate and apply the element's new location."],["It's crucial for controlling the visual movement of elements during drag interactions within Blockly workspaces."]]],[]]