mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
update break block even if it's not the dragged block (#4533)
This commit is contained in:
committed by
GitHub
parent
e258d98b50
commit
55a453dab9
@@ -334,9 +334,8 @@ Blockly.Constants.Loops.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN = {
|
|||||||
// Don't change state if:
|
// Don't change state if:
|
||||||
// * It's at the start of a drag.
|
// * It's at the start of a drag.
|
||||||
// * It's not a move event.
|
// * It's not a move event.
|
||||||
// * Or the moving block is not this block.
|
|
||||||
if (!this.workspace.isDragging || this.workspace.isDragging() ||
|
if (!this.workspace.isDragging || this.workspace.isDragging() ||
|
||||||
e.type != Blockly.Events.BLOCK_MOVE || e.blockId != this.id) {
|
e.type != Blockly.Events.BLOCK_MOVE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var enabled = Blockly.Constants.Loops.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN
|
var enabled = Blockly.Constants.Loops.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN
|
||||||
|
|||||||
Reference in New Issue
Block a user