title: Javascript Touchmove takes intial point from <body> not from element
body: <p>Javascript's touchmove event taking the Initial point from the <code>&lt;body&gt;</code> not from selected division.
  how can I make it select its initial point from the selected division?</p>
  
  <p><strong>Note</strong> on single touch it takes an initial point from selected div but on touchmove it takes from the body.</p>
  
  <p>Here is an example:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function myFunction(event) {
    event.preventDefault();
    var x = event.touches[0].clientX;
    var y = event.touches[0].clientY;
    document.getElementById("demo").innerHTML = x + ", " + y;
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.left{
  padding:10%;
  background-color:#444;
  float:left;
  display:block;
  position:relative;
  margin-right:10px;
  }
  .blue{
  padding:10% 30%;
  background-color:#00f;
  float:left;
  display:block;
  position:relative;
  }
  #demo{
  display:block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt;DOM touchmove Event&lt;/h1&gt;
  &lt;div class="left"&gt;&lt;/div&gt;
  &lt;div class="blue" ontouchmove="myFunction(event)"&gt;&lt;/div&gt;
  
  &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;Blue is the example for touch devices.&lt;/p&gt;
  
  &lt;p id="demo"&gt;&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>