mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
This commit is contained in:
@@ -152,6 +152,13 @@ Blockly.BlockDragger.prototype.startBlockDrag = function(currentDragDeltaXY, hea
|
||||
Blockly.Events.setGroup(true);
|
||||
}
|
||||
|
||||
// Mutators don't have the same type of z-ordering as the normal workspace during a drag.
|
||||
// They have to rely on the order of the blocks in the svg. For performance reasons that
|
||||
// usually happens at the end of a drag, but do it at the beginning for mutators.
|
||||
if (this.workspace_.isMutator) {
|
||||
this.draggingBlock_.bringToFront();
|
||||
}
|
||||
|
||||
this.workspace_.setResizesEnabled(false);
|
||||
Blockly.BlockAnimations.disconnectUiStop();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user