Fixed bug

Fixed bug where pressing down on clear canvas, releasing the mouse
button outside the clear canvas button and clicking on (e.g.) draw
toolbar item would clear the canvas.