title: How do I get mouse coordinates on Fabric.js?
body: <p>I'm trying to read the X coordinate of a mouse click on Fabric.js.</p>
  
  <p>Here is my code. The console logs <code>undefined</code> every time.</p>
  
  <pre><code>var canvas = new fabric.Canvas('c1');
  canvas.on('mouse:down', function(e){
    getMouse(e);
  });
  
  function getMouse(e) {
    console.log(e.clientX);
  }
  </code></pre>