The PolyLasso has two potential modes, a freehand polyline and a multi-click polygon. By default both are enabled but this can be selectively controlled with flags below. If a click-and-release is within a small distance tolerance, then a multi-click polygon is entered, and must be exited by clicking again at the start point. The freehand polyline is drawn by click-dragging, and exited by releasing the mouse.