From f8a916438c8aa231d47d68e7742b15b4dd5b49fb Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Fri, 7 Oct 2016 18:29:31 -0700 Subject: [PATCH] Resets zoom to startScale instead of 1. PR #687 --- core/zoom_controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/zoom_controls.js b/core/zoom_controls.js index be9a13be8..5fcff4c89 100644 --- a/core/zoom_controls.js +++ b/core/zoom_controls.js @@ -164,7 +164,7 @@ Blockly.ZoomControls.prototype.createDom = function() { // Attach event listeners. Blockly.bindEventWithChecks_(zoomresetSvg, 'mousedown', null, function(e) { - workspace.setScale(1); + workspace.setScale(workspace.options.zoomOptions.startScale); workspace.scrollCenter(); Blockly.Touch.clearTouchIdentifier(); // Don't block future drags. e.stopPropagation(); // Don't start a workspace scroll.