diff --git a/js/ui/dnd.js b/js/ui/dnd.js index e27c3691f..14ccb2af3 100644 --- a/js/ui/dnd.js +++ b/js/ui/dnd.js @@ -704,8 +704,8 @@ var _Draggable = class _Draggable { _onAnimationComplete(dragActor, eventTime) { if (this._dragOrigParent) { - Main.uiGroup.remove_child(this._dragActor); - this._dragOrigParent.add_actor(this._dragActor); + Main.uiGroup.remove_child(dragActor); + this._dragOrigParent.add_actor(dragActor); dragActor.set_scale(this._dragOrigScale, this._dragOrigScale); dragActor.set_position(this._dragOrigX, this._dragOrigY); } else {