Allow mouse leaving the canvas but continue drawing

Added the ability for the mouse to leave the drawing area and stop tracking the line, but start tracking the line again upon reentering the drawing area if the mouse is still being held down.