Skip to content

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

Description

@hamishtaplin

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)

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