Liferay.Loader.define('product-navigation-control-menu$dom-helpers@5.2.0/esm/getScrollAccessor', ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    import isWindow from './isWindow';
    export default function getscrollAccessor(offset) {
      var prop = offset === 'pageXOffset' ? 'scrollLeft' : 'scrollTop';

      return function scrollAccessor(node, val) {
        var win = isWindow(node);

        if (val === undefined) {
          return win ? win[offset] : node[prop];
        }

        if (win) {
          win.scrollTo(win[offset], val);
        } else {
          node[prop] = val;
        }
      };
    }
  }
});
//# sourceMappingURL=getScrollAccessor.js.map