Blockly. FlyoutDragger
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 |
The flyout to drag. Value must not be null. |
- Extends
- Blockly.WorkspaceDragger
Property
startScrollXY_
unknown
The scroll position of the workspace at the beginning of the drag. Coordinate system: pixel coordinates.
- Inherited from
- Blockly.WorkspaceDragger#startScrollXY_
Methods
dispose
dispose()
Sever all links from this object.
- Inherited from
- Blockly.WorkspaceDragger#dispose
drag
drag(currentDragDeltaXY)
Move the flyout based on the most recent mouse movements.
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. |
endDrag
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
startDrag()
Start dragging the workspace.
- Inherited from
- Blockly.WorkspaceDragger#startDrag