components/utils/scripts/events.js
function(event) {
    if (typeof event.touches != 'undefined' && event.touches.length > 0) {
      var c = {
        x: event.touches[0].pageX, 
        y: event.touches[0].pageY
      };
    } else {
      var  c = {
        x: (event.pageX || (event.clientX + document.body.scrollLeft)),
        y: (event.pageY || (event.clientY + document.body.scrollTop))
      };
    }
    
    return c;
  }
function(event) {
    if (typeof event.touches != 'undefined' && event.touches.length > 0) {
      var c = {
        x: event.touches[0].pageX, 
        y: event.touches[0].pageY
      };
    } else {
      var  c = {
        x: (event.pageX || (event.clientX + document.body.scrollLeft)),
        y: (event.pageY || (event.clientY + document.body.scrollTop))
      };
    }
    
    return c;
  }
function ( event ) { if ( typeof event . touches != 'undefined' && event . touches . length > 0 ) { var c = { x : event . touches [ 0 ] . pageX , y : event . touches [ 0 ] . pageY } ; } else { var c = { x : ( event . pageX || ( event . clientX + document . body . scrollLeft ) ) , y : ( event . pageY || ( event . clientY + document . body . scrollTop ) ) } ; } return c ; }
returns mouse or all finger touch coords
returns mouse or all finger touch coords