Skip to content

scroll locked prevents navigating via swipe #3752

@frolic

Description

@frolic

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

CodeSandbox Template

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions