Register drag and dragEnd listeners only for the dragging period