check edit mode before initiating select by dragging