mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-11 13:38:50 -04:00
Merge remote-tracking branch 'Google/master' into google-master-april-1
# Conflicts: # blockly_compressed_horizontal.js # blockly_uncompressed_vertical.js # blocks_compressed.js # core/block.js # core/block_svg.js # core/blockly.js # core/connection.js # core/field_textinput.js # core/workspace_svg.js # generators/lua/lists.js # generators/lua/text.js # msg/js/he.js # msg/js/id.js # msg/js/sr.js # msg/js/zh-hant.js # msg/json/en.json
This commit is contained in:
commit
a65109f423
134 changed files with 1952 additions and 1235 deletions
core
|
@ -310,6 +310,7 @@ Blockly.Field.prototype.getSize = function() {
|
|||
* Returns the height and width of the field,
|
||||
* accounting for the workspace scaling.
|
||||
* @return {!goog.math.Size} Height and width.
|
||||
* @private
|
||||
*/
|
||||
Blockly.Field.prototype.getScaledBBox_ = function() {
|
||||
var bBox = this.borderRect_.getBBox();
|
||||
|
@ -427,7 +428,7 @@ Blockly.Field.prototype.onMouseUp_ = function(e) {
|
|||
} else if (Blockly.isRightButton(e)) {
|
||||
// Right-click.
|
||||
return;
|
||||
} else if (Blockly.dragMode_ == 2) {
|
||||
} else if (Blockly.dragMode_ == Blockly.DRAG_FREE) {
|
||||
// Drag operation is concluding. Don't open the editor.
|
||||
return;
|
||||
} else if (this.sourceBlock_.isEditable()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue