Merge remote-tracking branch 'origin/develop' into develop

# Conflicts:
#	core/workspace_svg.js
This commit is contained in:
Neil Fraser
2016-04-14 00:25:25 -07:00
2 changed files with 5 additions and 0 deletions

View File

@@ -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();
};
/**

View File

@@ -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_;