Fix "canvas not defined" when using click callback.

Derived the relevant canvas for the click callback from evt.target.