support dragging in patterns