Resets zoom to startScale instead of 1. PR #687

This commit is contained in:
Neil Fraser
2016-10-07 18:29:31 -07:00
parent f7bbaaa82d
commit f8a916438c

View File

@@ -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.