/**
 * 获取拓展屏相对主屏的位置
 * @returns {{screenLeft: number, screenTop: number}}
 *
 * @example
 * const {screenLeft, screenTop} = getScreenPosition();
 */
function getScreenPosition() {
  return {
    screenLeft: window.screenLeft || window.screenX || 0,
    screenTop: window.screenTop || window.screenY || 0
  };
}

export default getScreenPosition;
