title: document.elementFromPoint not precise
body: <p>I defined a function in JS: </p>
  
  <pre><code>function getElementIDAtPoint(x,y) {
  
     console.log("Touch Down ("+x+", "+y+")");
  
     var id = '';
     var element  = document.elementFromPoint(x,y)
  
     while(!element.id &amp;&amp; element.tagName != 'BODY'){
         element = element.parentElement;
         alert('tagname: ' + element.tagName + ' id: ' + element.id)
     }
  
     return id;
  }
  </code></pre>
  
  <p>Sometimes i don't get an id, even though the element i clicked on has an id. The elements are small and maybe that's causing the issue. How can i make this more precise? i'm not a js expert</p>