Use chan to enable and disable dragging.