add condition to not dragging box if cursor on text