code: public final int pageX() {
      if (getTouches() != null && getTouches().length() > 0) {
        return getTouches().get(0).getPageX();
      } else {
        return getClientX() + GQuery.document.getScrollLeft();
      }
    }
docs: The mouse position relative to the left edge of the document.