Stay organized with collections
Save and categorize content based on your preferences.
blockly > Gesture > getCurrentDragger
Gesture.getCurrentDragger() method
Returns the current dragger if the gesture is a drag.
Signature:
getCurrentDragger(): WorkspaceDragger | IDragger | null;
Returns:
WorkspaceDragger | IDragger | null
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 `getCurrentDragger()` method, part of the `Gesture` class in Blockly, is used to retrieve the active dragger element during a drag operation."],["If the current gesture is a drag, this method will return the associated `WorkspaceDragger` or `IDragger` object; otherwise, it returns `null`."]]],["The `Gesture.getCurrentDragger()` method retrieves the current dragger associated with a gesture if it's a drag operation. It returns either a `WorkspaceDragger`, an `IDragger`, or `null` if no dragger is currently active. This method is used to access the object responsible for handling the dragging action within a gesture-based interaction.\n"]]