'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var getWindowScroll = require('./getWindowScroll.js');
var getWindow = require('./getWindow.js');
var instanceOf = require('./instanceOf.js');
var getHTMLElementScroll = require('./getHTMLElementScroll.js');

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

exports.default = getNodeScroll;
//# sourceMappingURL=getNodeScroll.js.map
