richardharrington/draw — Issue #1: bug in the drawing program when you go out of the canvas without lifting up the mouse
Author: richardharrington
Created: 2011-12-31 00:26:49+00:00
State: open

Fix the bug that causes it to remain in drawing mode if you go off the canvas while you have the mouse pressed down. This bug creates a few problems:

1. If you drag the brush out and around to the other side of the canvas, a straight line is drawn from where you left the canvas to where you re-enter it.
2. If go off the canvas while you have the mouse pressed down, when you reenter the canvas you will be in drawing mode whether you have the mouse pressed down or not, and
3. If you go off the canvas while you have the mouse pressed down and then change the color, when you reenter the canvas, everything you've drawn since you last went into drawing mode will be changed to the new color.