We add hanblers to the canvas onmousedown and onmouseup