Constructor

FlyoutDragger

new FlyoutDragger(flyout)

Class for a flyout dragger. It moves a flyout workspace around when it is being dragged by a mouse or touch. Note that the workspace itself manages whether or not it has a drag surface and how to do translations based on that. This simply passes the right commands based on events.

Parameter

flyout

Blockly.Flyout

The flyout to drag.

Value must not be null.

Extends
Blockly.WorkspaceDragger

Methods

dispose

package

dispose()

Sever all links from this object.

Inherited from
Blockly.WorkspaceDragger#dispose

drag

package

drag(currentDragDeltaXY)

Move the flyout based on the most recent mouse movements.

Parameter

currentDragDeltaXY

Blockly.utils.Coordinate

How far the pointer has moved from the position at the start of the drag, in pixel coordinates.

Value must not be null.

endDrag

package

endDrag(currentDragDeltaXY)

Finish dragging the workspace and put everything back where it belongs.

Parameter

currentDragDeltaXY

How far the pointer has moved from the position at the start of the drag, in pixel coordinates.

Value must not be null.

Inherited from
Blockly.WorkspaceDragger#endDrag

startDrag

package

startDrag()

Start dragging the workspace.

Inherited from
Blockly.WorkspaceDragger#startDrag