Skip to content

bug: initialSnap is not respected after Safari swipe to back #215

@asendia

Description

@asendia

In Safari (iOS 18, iOS 26, MacOS Sonoma, MacOS Tahoe) when navigates back from a page with swipe to back gesture, the modal sheet is always fully opened even though the initialSnap is set to not fully open.

swipe-to-back.mp4

It does not happen when using back button

click-to-back.mp4

Demo: https://asendia.github.io/react-modal-sheet-issue-215/
Source code: https://github.com/asendia/react-modal-sheet-issue-215/blob/ee41e26b9b05a3b51a07dec8ddfd81bea105845f/src/App.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions