INIT
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
<script lang="ts">
|
||||
import type { ScrollLockProps } from "./index.js";
|
||||
import { BodyScrollLock } from "../../../internal/body-scroll-lock.svelte.js";
|
||||
|
||||
let { preventScroll = true, restoreScrollDelay = null }: ScrollLockProps = $props();
|
||||
|
||||
if (preventScroll) {
|
||||
new BodyScrollLock(preventScroll, () => restoreScrollDelay);
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user