mirror of
https://github.com/google/blockly.git
synced 2026-01-24 01:00:11 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user