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

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

@param {Event} event
@returns {Number}