fixed redraw bug when panning while making a polygon