Collapse expanded elements when they are dragged.