Canvas click event handler