When the mouse leaves the canvas, drawing stops. Changed the default lineWidth to 5.