primitives
primitives copied to clipboard
scroll locked prevents navigating via swipe
Bug report
Current Behavior
When I have a dialog open where the body receives an data-scroll-locked attribute and styles are added like disabling overscroll, I can't use my trackpad to swipe back/forward through the browser history.
Expected behavior
I want to be able to swipe to go back.
Reproducible example
Suggested solution
I tried removing the overscroll CSS prop as that usually fixes this kind of issue, but that didn't seem to work here.
Additional context
Your environment
| Software | Name(s) | Version |
|---|---|---|
| Radix Package(s) | radix-ui | 1.4.3 |
| React | n/a | 19.1.1 |
| Browser | Brave | Brave 1.84.135 (Official Build) (arm64) (Chromium: 142.0.7444.135) |
| Assistive tech | ||
| Node | n/a | 22.13.1 |
| npm/yarn/pnpm | pnpm | 9.15.4 |
| Operating System | MacOS | 15.6.1 |