mouse movement to capture contour