Make tutorial more responsive by adding DOM event listeners when the user is drawing the polyline.