Move

Blockly's main workspace can be moved around using three different methods: the scrollbars, the mouse, or the mouse wheel.

The move settings are defined by an object that is part of Blockly's configuration. Here is an example:

var workspace = Blockly.inject('blocklyDiv',
    {move:{
        scrollbars: true,
        drag: true,
        wheel: false}
    });

scrollbars

Determines if the workspace has scrollbars. Defaults to true if the workspace has categories.

drag

Determines if the workspace can be dragged with the mouse. Always false if scrollbars is false (at least in options parsing). Defaults to true if scrollbars is true.

wheel

Determines if the workspace can be scrolled with the mouse wheel. Always false if scrollbars is false (at least in options parsing). Defaults to false.