Merge pull request #921 from rachel-fenichel/feature/workspace_isMovable

Workspace isDraggable
This commit is contained in:
Rachel Fenichel
2017-02-08 13:02:42 -08:00
committed by GitHub

View File

@@ -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.