Only log about a missing event group if we actually did something

This commit is contained in:
Rachel Fenichel
2019-11-08 15:14:14 -08:00
committed by GitHub
parent b7b262efd5
commit 611c8b81fe

View File

@@ -311,7 +311,7 @@ Blockly.createMainWorkspace_ = function(svg, options, blockDragSurface,
object.moveBy(deltaX, deltaY);
}
if (e) {
if (!e.group) {
if (!e.group && object) {
console.log('WARNING: Moved object in bounds but there was no' +
' event group. This may break undo.');
}