changed so that mouse events only react to clicks/mouse position on canvas