Close the current popup when a thing is dragged