material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

iOS Safari Change Tabs Swipe Gesture Affects `Modal` Component

Open johndebord opened this issue 1 year ago • 4 comments

Steps to reproduce

I have no idea what's going on. It looks like the styling of Instagram is affecting my web app when tabbing back and forth. I've tested this on other websites and my web app works fine. I've attached a video of the behavior below.

Minimal example code:

export default function App() {
  return (
    <SwipeableDrawer
      SlideProps={{
        sx: {
          height: "61.8%",
        },
      }}
      anchor="bottom"
      onOpen={() => {}}
      open
    >
      asdf
    </SwipeableDrawer>
  );
}

Your environment

iOS Version: 16.6.1 Model Name: iPhone 12 Pro Max

Search keywords: Style CSS JS Bleed

johndebord avatar May 14 '24 04:05 johndebord

https://github.com/mui/material-ui/assets/35586806/0ff0a77c-972f-4a44-af2d-355eb594d2ea

johndebord avatar May 14 '24 04:05 johndebord

I upgraded to iOS 17.5 and no longer have this issue

johndebord avatar May 14 '24 05:05 johndebord

Tested this again today, and I still have the issue even after upgrading to iOS 17.5

johndebord avatar May 14 '24 19:05 johndebord

Minimal example code:

export default function App() {
  return (
    <Modal open>
      <Typography>asdf</Typography>
    </Modal>
  );
}

The root cause of this issue appears to stem from the Modal component. Here's another video highlighting the problem.

https://github.com/mui/material-ui/assets/35586806/e88baf94-00af-4baa-841d-91a91d1193eb

johndebord avatar May 14 '24 20:05 johndebord