Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS issues with snap points + modal=false (bg interact-able) + non-dismissable + scroll #349

Open
sgup opened this issue May 10, 2024 · 4 comments

Comments

@sgup
Copy link

sgup commented May 10, 2024

Hi,

could you please create an example with a drawer that:

  • is non-dismissable
  • has multiple snap points (even 2, minimized and full)
  • has scrollable content
  • allows the user to interact with bg elements?

for context, I'm trying to build a similar UI to apple maps. I'm able to get it working on chrome/desktop and tested with smaller windows, but it doesn't work on an iOS device or simulator.

Thank you

@joaom00
Copy link
Contributor

joaom00 commented May 13, 2024

What exactly is not working on iOS?

@sgup
Copy link
Author

sgup commented May 17, 2024

the interactions were janky / broken on iOS with the above settings. When trying to close it was dragging the page instead, and also the bg stuff wasn't interactable. I was able to hack around it with:

body {
  pointer-events: auto !important;
}

and wrapping the drawer with

 <div className="touch-none overflow-hidden"> drawer </div>

Next I'm trying to render a nested drawer / layered drawers with all those settings, really pushing your lib here 😆

@joaom00
Copy link
Contributor

joaom00 commented May 18, 2024

Have you tried using modal={false} to make background elements interactable?

When trying to close it was dragging the page instead, and also the bg stuff wasn't interactable

Could you create a reproducible example for me to take a look at? thanks in advance

@sgup
Copy link
Author

sgup commented May 21, 2024

with modal={false} it does allow things to be interactive under it, but the dragging to close doesn't work properly on iOS with all the mentioned settings:

  • is non-dismissable
  • has multiple snap points (even 2, minimized and full)
  • has scrollable content

I'll get back to you with a good example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants