!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.createLocker=e()}(this,function(){"use strict";function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var e=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.scrollElement=t.scrollElement||document.scrollingElement||document.documentElement,this.lock=this.lock.bind(this),this.unlock=this.unlock.bind(this)}var l,o,n;return l=e,(o=[{key:"lock",value:function(){return this.style={top:this.scrollElement.style.top||"",width:this.scrollElement.style.width||"",position:this.scrollElement.style.position||""},this.scrollTop=this.scrollElement.scrollTop,this.scrollElement.style.cssText+="width:100%;position:fixed;top:-".concat(this.scrollTop,"px;"),this}},{key:"unlock",value:function(){for(var t in this.style)this.scrollElement.style[t]=this.style[t];return this.scrollElement.scrollTop=this.scrollTop,delete this.style,delete this.scrollTop,this}}])&&t(l.prototype,o),n&&t(l,n),e}();return function(t){return new e(t)}});
//# sourceMappingURL=lock-body-scroll.min.js.map
