Feb 16, 2014 · If the user has scrolled the page that your canvas game is on, or used the browser zoom feature, it can mess up the accurate calculation of the mouse position. An easy solution is to use the getBoundingClientRect method of the canvas object. This returns a rectangle object that gives you the current offset of the canvas relative to the page.
In the 1930s, Arsenal won five League Championships and two FA Cups, and another FA Cup and two Championships after the war. In 1970–71, we won our first League and FA Cup Double. Between 1989 and 2005, we won five League titles and five FA Cups, including two more Doubles. We completed the 20th century with the highest average league position