Drawing Tool

Basic Features

Step 8: Stop drawing when the user moves the mouse off the canvas.
Hint: Use a mouseout event listener:
yourCanvasVariable.addEventListener(`mouseout`, stopDrawing)
Last step Next step