Skip to main content

Home > blockly > Gesture

Gesture class

Class for one gesture.

Signature:

export declare class Gesture 

Constructors

ConstructorModifiersDescription
(constructor)(e, creatorWorkspace)Constructs a new instance of the Gesture class

Properties

PropertyModifiersTypeDescription
currentDropdownOwnerField | nullThe owner of the dropdownDiv when this gesture first starts. Needed because we'll close the dropdown before fields get to act on their events, and some fields care about who owns the dropdown.
isEnding_protectedbooleanBoolean used internally to break a cycle in disposal.
startWorkspace_protectedWorkspaceSvg | nullThe workspace that the gesture started on. There may be multiple workspaces on a page; this is more accurate than using Blockly.common.getMainWorkspace().

Methods

MethodModifiersDescription
getCurrentDragger()Returns the current dragger if the gesture is a drag.
inProgress()staticIs a drag or other gesture currently in progress on any workspace?