hiding globals for canvas mouse events