Stay organized with collections
Save and categorize content based on your preferences.
blockly > IDragger > onDragEnd
IDragger.onDragEnd() method
Handles any drag cleanup.
Signature:
onDragEnd(e: PointerEvent, totalDelta: Coordinate): void;
Parameters
Parameter |
Type |
Description |
e |
PointerEvent |
PointerEvent that finished the drag. |
totalDelta |
Coordinate |
The total distance, in pixels, that the mouse has moved since the start of the drag. |
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 `onDragEnd()` method in Blockly's IDragger interface is responsible for performing any necessary cleanup actions after a drag operation has concluded."],["This method receives two parameters: a PointerEvent representing the drag's completion and a Coordinate object indicating the total drag distance."],["`onDragEnd()` does not return any specific value (void)."]]],["The `onDragEnd` method, part of the `IDragger` interface, manages drag cleanup. It takes two parameters: a `PointerEvent` object representing the end of the drag and a `Coordinate` object named `totalDelta`. `totalDelta` indicates the total pixel distance moved during the drag. The method's primary action is to finalize the drag operation, returning void upon completion, indicating no return value.\n"]]