function pageX(event) {
  if (event.pageX) {
    return event.pageX;
  }

  var rootWindow = event.target.ownerDocument.defaultView;
  return event.clientX + (0, _element.getWindowScrollLeft)(rootWindow);
}
Get horizontal coordinate of the event object relative to the whole document.

@param {Event} event
@returns {Number}