-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
next: fix pointer event restoration (#695)
- Loading branch information
Showing
6 changed files
with
5,437 additions
and
6,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"bits-ui": patch | ||
--- | ||
|
||
next: fix pointer event restoration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
packages/bits-ui/src/lib/bits/utilities/scroll-lock/scroll-lock.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
<script lang="ts"> | ||
import { untrack } from "svelte"; | ||
import type { ScrollLockProps } from "./index.js"; | ||
import { useBodyScrollLock } from "$lib/internal/useBodyScrollLock.svelte.js"; | ||
let { preventScroll = true }: ScrollLockProps = $props(); | ||
$effect(() => { | ||
if (preventScroll) { | ||
untrack(() => useBodyScrollLock(preventScroll)); | ||
} | ||
}); | ||
useBodyScrollLock(preventScroll); | ||
</script> |
Oops, something went wrong.