blockly > BlockSvg > startDrag
BlockSvg.startDrag() method
Starts a drag on the block.
Signature:
startDrag(e?: PointerEvent): void;
Parameters
Parameter |
Type |
Description |
e |
PointerEvent |
(Optional) |
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.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `startDrag` method initiates a drag operation on a BlockSvg object within Blockly."],["It optionally takes a PointerEvent as input, providing details about the drag initiation."],["Executing this method results in the visual dragging of the block within the Blockly workspace."],["This function is primarily used for user interactions where a block is dragged and repositioned."]]],["The `startDrag` method, part of the `BlockSvg` class, initiates a drag operation on a block. It accepts an optional `PointerEvent` parameter (`e`). This method, when called, begins the dragging interaction. The method returns nothing (`void`). The core action is starting the dragging process on a block element. No specific details about the nature of the drag are mentioned.\n"]]