Starting the undo when moving an object.