better management of the click on the canvas
Merge pull request #33 from dmichiels/improveui

better management of the click on the canvas