title: Mouse position in IE
body: <pre><code>var mousemove = function(event) {
      var xpos = event.x || event.clientX;
  
      console.log(xpos);
  }
  
  window.addEventListener('mousemove', mousemove);
  </code></pre>
  
  <p>I have the following code which works beautifully on Chrome and Firefox but typically on IE doesn't. IE seems to be reporting the mouse position relative to the current element it's hovered over or the focal point is being switched somewhere and it's getting confused, rather than the window which the event is bound to.</p>
  
  <p>The code is used on a off-canvas navigation system i am working to calculate if the mouse is less than 5% from the left of the screen (where the navigation is situated).</p>
  
  <p><strong>Any ideas on getting it to play nicely would be awesome.</strong></p>