{"version":3,"file":"StopScroll_Prod.DgW7AVpC.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/9ajhXMTvNHa3o84QkAph/tQUiR8E8LC39zsb2wDqD/StopScroll_Prod.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function StopScroll(props){const{toggle}=props;// `height: auto` is unconditional on purpose. Framer's preview injects\n// `html, body { width: 100%; height: 100% }`, which pins body to one\n// viewport. Locking overflow on top of that collapses the viewport scroll\n// range, so the browser clamps the scroll offset to 0 and never restores it\n// -- the page jumps to the top. Published pages already compute html/body\n// to auto height, so the declaration is a no-op there and no environment\n// check is needed. Width is left alone; only the height causes the clamp.\nreturn toggle?/*#__PURE__*/_jsx(\"style\",{\"data-frameruni-stop-scroll\":true,children:`html,body { overflow: hidden !important; height: auto !important; }`}):/*#__PURE__*/_jsx(_Fragment,{});}StopScroll.displayName=\"Stop Scroll\";addPropertyControls(StopScroll,{toggle:{type:ControlType.Boolean,title:\"Block Scroll\",description:\"More components at [Framer University](https://frameruni.link/cc).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StopScroll\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StopScroll_Prod.map"],"mappings":"mKAKG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,UAAQ,EAO3D,OAAO,EAAoB,EAAK,QAAQ,CAAC,6BAA6B,GAAK,SAAS,qEAAqE,CAAC,EAAe,EAAKA,EAAU,CAAC,CAAC,CAAE,iBAZ5H,IAAoD,EAYyE,EAAW,YAAY,cAAc,EAAoB,EAAW,CAAC,OAAO,CAAC,KAAK,EAAY,QAAQ,MAAM,eAAe,YAAY,oEAAoE,CAAC,CAAC"}