diff --git a/core/workspace_svg.js b/core/workspace_svg.js index 1b22af9a2..4945a60b7 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -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.