title: How to return X and Y coordinates when using jquery.hammer.js
body: <p>I am programming a little page using jquery.hammer.js and I have having problems getting the x and y coordinates of a touch event.</p>
  
  <p>my code is as follows:</p>
  
  <pre><code>var x1, y1;
  var element = document.getElementById("myDIV")
  $(element).hammer().on("touch", function(e){
  x1 = e.clientX
  y1 = e.clientY
  
  document.getElementById("resultDIV").innerHTML = x1 + " " + y1
  }
  </code></pre>
  
  <p>but all I get is "undefined undefined" as my result.</p>
  
  <p>i have everything i can think of, any help is much appreciated.</p>