Merge pull request #3421 from google/rachel-fenichel-patch-1

Only log about a missing event group if we actually did something
This commit is contained in:
Rachel Fenichel
2019-11-08 16:05:49 -08:00
committed by GitHub

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.');
}