mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Merge pull request #921 from rachel-fenichel/feature/workspace_isMovable
Workspace isDraggable
This commit is contained in:
@@ -1010,6 +1010,14 @@ Blockly.WorkspaceSvg.prototype.isDragging = function() {
|
||||
this.dragMode_ == Blockly.DRAG_FREE;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is this workspace draggable and scrollable?
|
||||
* @return {boolean} True if this workspace may be dragged.
|
||||
*/
|
||||
Blockly.WorkspaceSvg.prototype.isDraggable = function() {
|
||||
return !!this.scrollbar;
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle a mouse-wheel on SVG drawing surface.
|
||||
* @param {!Event} e Mouse wheel event.
|
||||
|
||||
Reference in New Issue
Block a user