diff --git a/core/workspace_svg.js b/core/workspace_svg.js index 21ee217ae..b513ed674 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -1800,7 +1800,15 @@ Blockly.WorkspaceSvg.prototype.onMouseWheel_ = function(e) { } var scrollDelta = Blockly.utils.getScrollDeltaPixels(e); - if (canWheelZoom && (e.ctrlKey || !canWheelMove)) { + + // Zoom should also be enabled by the command key on Mac devices, + // but not super on Unix. + var commandKey; + if (Blockly.utils.userAgent.MAC) { + commandKey = e.metaKey; + } + + if (canWheelZoom && (e.ctrlKey || commandKey || !canWheelMove)) { // Zoom. // The vertical scroll distance that corresponds to a click of a zoom // button.