Remove mutator bump timeout.

Anything that changes the shape of a block should be calling
bumpNeighbors from inside BlockSvg. So this call is unnecessary. If
this call is making something bump that normally wouldn't, that should
be treated as a bug, and the root should be made to call bumpNieghbours.
This commit is contained in:
Beka Westberg
2020-03-31 12:25:53 -07:00
parent f05faffd7a
commit 7e03924d4c

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