mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # core/workspace_svg.js
This commit is contained in:
@@ -1105,6 +1105,9 @@ Blockly.WorkspaceSvg.prototype.setScale = function(newScale) {
|
||||
// No toolbox, resize flyout.
|
||||
this.flyout_.reflow();
|
||||
}
|
||||
// This event has been handled. Don't start a workspace drag.
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -166,10 +166,12 @@ Blockly.ZoomControls.prototype.createDom = function() {
|
||||
Blockly.bindEvent_(zoominSvg, 'mousedown', null, function(e) {
|
||||
workspace.zoomCenter(1);
|
||||
e.stopPropagation(); // Don't start a workspace scroll.
|
||||
e.preventDefault();
|
||||
});
|
||||
Blockly.bindEvent_(zoomoutSvg, 'mousedown', null, function(e) {
|
||||
workspace.zoomCenter(-1);
|
||||
e.stopPropagation(); // Don't start a workspace scroll.
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
return this.svgGroup_;
|
||||
|
||||
Reference in New Issue
Block a user