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

Drawer sometimes becomes unresponsive on iPhone when Safari is set to "Tab Bar" option #374

Open
hamishtaplin opened this issue Jun 7, 2024 · 1 comment

Comments

@hamishtaplin
Copy link

hamishtaplin commented Jun 7, 2024

On iPhone (when using "Tab Bar" setting - ie. the tab/address bar is at the bottom of the screen) opening the drawer on a page where the user has scrolled down causes it to become almost completely unresponsive. It cannot be dismissed and you cannot interact with its children (eg. radio buttons).

Steps to reproduce

  • drawer configured with defaults (so that it can be swiped to close)
  • on a real iPhone (not simulator)
  • in Safari settings use "Tab Bar" option
  • on a page with content that is longer than the viewport height
  • scroll to bottom of page
  • open drawer
  • most of the time the drawer is now unresponsive

Example

Here's a reproducible example

Codesandbox

Additional info

  • using dismissible={false} makes the drawer responsive to touch but obviously can't be swiped closed anymore
  • the restoration of scroll position is also janky (you can see this in the example, the "open drawer" button isn't always in the same position when you close the drawer)
@erikdroh
Copy link

Can add that this only seems to be an issue for iOS versions over 17.5 (since Safari is updated with iOS updates)

The criteria for it not working seems to be

  • Safari settings use "Tab Bar" option
  • iOS version above ~17.5

All other browsers seems to work fine.

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