Merge pull request #3783 from BeksOmega/cleanup/mutator-bump

Remove mutator bump timeout
This commit is contained in:
Rachel Fenichel
2020-04-06 10:27:14 -07:00
committed by GitHub

View File

@@ -386,13 +386,6 @@ Blockly.Mutator.prototype.workspaceChanged_ = function(e) {
if (oldMutation != newMutation) {
Blockly.Events.fire(new Blockly.Events.BlockChange(
block, 'mutation', null, oldMutation, newMutation));
// Ensure that any bump is part of this mutation's event group.
var group = Blockly.Events.getGroup();
setTimeout(function() {
Blockly.Events.setGroup(group);
block.bumpNeighbours();
Blockly.Events.setGroup(false);
}, Blockly.BUMP_DELAY);
}
// Don't update the bubble until the drag has ended, to avoid moving blocks