First segment of polyline can now be drawn by click-dragging-releasing as well as by setting points one and two consecutively