import getWindowScroll from './getWindowScroll.mjs';
import getWindow from './getWindow.mjs';
import { isHTMLElement } from './instanceOf.mjs';
import getHTMLElementScroll from './getHTMLElementScroll.mjs';

function getNodeScroll(node) {
  if (node === getWindow(node) || !isHTMLElement(node)) {
    return getWindowScroll(node);
  } else {
    return getHTMLElementScroll(node);
  }
}

export { getNodeScroll as default };
//# sourceMappingURL=getNodeScroll.mjs.map
