If the window is smaller than the canvas and scrolled in anyway, then the mouse clicks on the canvas won't fill in the correct cell