React on clicks on the canvs.