Stay organized with collections
Save and categorize content based on your preferences.
blockly > dragging > Dragger > updateDragTarget
dragging.Dragger.updateDragTarget() method
Updates the drag target under the pointer (if there is one).
Signature:
protected updateDragTarget(e: PointerEvent): void;
Parameters
Parameter |
Type |
Description |
e |
PointerEvent |
|
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `updateDragTarget` method in Blockly's Dragger class dynamically adjusts the drag target element based on the current pointer position during a drag operation."],["This method, invoked with a PointerEvent object, determines the appropriate element under the pointer to be considered the new drag target, facilitating smooth and interactive dragging behavior within the Blockly workspace."],["It is a protected method, primarily used internally within the Dragger class."],["The method returns void, indicating it updates the drag target directly without providing an explicit return value."]]],[]]