diff --git a/core/block_dragger.js b/core/block_dragger.js
index <HASH>..<HASH> 100644
--- a/core/block_dragger.js
+++ b/core/block_dragger.js
@@ -245,9 +245,9 @@ Blockly.BlockDragger.prototype.endBlockDrag = function(e, currentDragDeltaXY) {
     // These are expensive and don't need to be done if we're deleting.
     this.draggingBlock_.moveConnections_(delta.x, delta.y);
     this.draggingBlock_.setDragging(false);
+    this.fireMoveEvent_();
     this.draggedConnectionManager_.applyConnections();
     this.draggingBlock_.render();
-    this.fireMoveEvent_();
     this.draggingBlock_.scheduleSnapAndBump();
   }
   this.workspace_.setResizesEnabled(true);
Fix undoing a drag to connect (blockly#<I>)