{"version":3,"sources":["src/utils/scroller.ts"],"names":["Scroller","[object Object]","doc","this","overflow","undefined","body","style"],"mappings":"MAIaA,EAWXC,YAAoBC,GAAAC,KAAAD,IAAAA,EATZC,KAAAC,SAAmBC,UAUzBF,KAAKC,SAAWF,EAAII,KAAKC,MAAMH,SAU1BH,gBACLE,KAAKD,IAAII,KAAKC,MAAMH,SAAW,SAU1BH,eACLE,KAAKD,IAAII,KAAKC,MAAMH,SAAWD,KAAKC","sourcesContent":["/**\n * Class representing a scroller controller\n * @hidden\n */\nexport class Scroller {\n // Stores the overflow style of the page so that we can revert the style back to it\n private overflow: string = undefined;\n\n /**\n * Intialises the overflow variable to the value in the doc object\n * @hidden\n *\n * @param {Document} doc The document object\n * @constructs\n */\n constructor(private doc: Document) {\n this.overflow = doc.body.style.overflow;\n }\n\n /**\n * Disable scroller on the main body object\n * @hidden\n *\n * @return {void}\n * @public\n */\n public disableScroll(): void {\n this.doc.body.style.overflow = 'hidden';\n }\n\n /**\n * Put back what ever overflow value was there before\n * @hidden\n *\n * @return {void}\n * @public\n */\n public enableScroll(): void {\n this.doc.body.style.overflow = this.overflow;\n }\n}\n"]}