From 59f408592a2cc5234a1d3213e78a5fb24e431f82 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Mon, 16 Jan 2017 20:35:25 -0800 Subject: [PATCH] Replace 'const' with 'var'. This unbreaks IE10 and advanced compiled apps such as Blockly Games. --- core/workspace_svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/workspace_svg.js b/core/workspace_svg.js index d11a852cd..0a34139a4 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -1000,7 +1000,7 @@ Blockly.WorkspaceSvg.prototype.onMouseWheel_ = function(e) { // TODO: Remove terminateDrag and compensate for coordinate skew during zoom. Blockly.terminateDrag_(); // The vertical scroll distance that corresponds to a click of a zoom button. - const PIXELS_PER_ZOOM_STEP = 50; + var PIXELS_PER_ZOOM_STEP = 50; var delta = -e.deltaY / PIXELS_PER_ZOOM_STEP; var position = Blockly.utils.mouseToSvg(e, this.getParentSvg(), this.getInverseScreenCTM());