Implement dragging.