code: function getX(event) {
    let originalEvent = event.originalEvent;
    let touches = originalEvent? originalEvent.changedTouches : event.changedTouches;
    let touch = touches && touches[0];
  
    if (touch) {
      return touch.screenX;
    } else {
      return event.clientX;
    }
  }
docs: Gets the x offset for a given event.
  @method getX
  @return {Number}
  @private