mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Resets zoom to startScale instead of 1. PR #687
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user