code: function (e) {
              // This code is inspired from https://stackoverflow.com/a/3464890
              var doc = document.documentElement,
                  pageX = e.clientX + (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0),
                  pageY = e.clientY + (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
              return { X: pageX, Y: pageY };
          }
docs: - getPageXY(e)
  
  Calculates the pageX and pageY using the screenX, screenY properties of the event
  and the scrolling of the page. This is needed because the pageX and pageY
  properties of the event are not correct while running tests in Edge.