Handle item dragging.