Stay organized with collections
Save and categorize content based on your preferences.
blockly > dragging > CommentDragStrategy > revertDrag
Signature:
revertDrag(): void;
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."],[[["\u003cp\u003e\u003ccode\u003erevertDrag()\u003c/code\u003e returns the dragged workspace comment back to its original position before the drag operation began.\u003c/p\u003e\n"],["\u003cp\u003eThis method is part of the \u003ccode\u003eCommentDragStrategy\u003c/code\u003e class, used specifically for managing the dragging behavior of workspace comments in Blockly.\u003c/p\u003e\n"],["\u003cp\u003eIt effectively cancels the drag operation, ensuring the comment is visually reset to its starting location.\u003c/p\u003e\n"]]],["The `revertDrag()` method, part of the `CommentDragStrategy` class within the `dragging` namespace, is designed to undo a dragging action. This method takes no input parameters and does not return any value. Its sole function is to revert the state of a comment drag operation back to its original position or state before the drag occurred.\n"],null,["[blockly](./blockly.md) \\\u003e [dragging](./blockly.dragging_namespace.md) \\\u003e [CommentDragStrategy](./blockly.dragging_namespace.commentdragstrategy_class.md) \\\u003e [revertDrag](./blockly.dragging_namespace.commentdragstrategy_class.revertdrag_1_method.md)\n\ndragging.CommentDragStrategy.revertDrag() method\n------------------------------------------------\n\n**Signature:** \n\n revertDrag(): void;\n\n**Returns:**\n\nvoid"]]