react-spring-bottom-sheet icon indicating copy to clipboard operation
react-spring-bottom-sheet copied to clipboard

Cannot horizontal scroll the content even thought specific overflow: scroll on the IOS browser

Open oukunanan opened this issue 4 years ago • 4 comments

It's working great on the desktop version but not for the IOS browser.

I updated the OS to the latest version.

Here is the example: https://codesandbox.io/s/wonderful-paper-hdjjd?file=/src/App.js

oukunanan avatar Jan 12 '22 07:01 oukunanan

I have the same problem :/

ingokpp avatar Mar 04 '22 21:03 ingokpp

I found the problem. Horizontal Scroll doesn't work when expandOnContentDrag is set to true.

ingokpp avatar Mar 06 '22 20:03 ingokpp

scrollLocking set to false fixed the problem for me

f1sh1918 avatar Aug 17 '22 07:08 f1sh1918

I forced overflow: hidden in body when bottom-sheet is opened, and it seems to work well in my case.

    <>
      <BottomSheet open={open} {...rest}>
        {children}
      </BottomSheet>
      {open && (
        <style jsx global>{`
          body {
            overflow: hidden !important;
          }
          #root {
            pointer-events: none;
          }
        `}</style>
      )}
    </>

SausageMania avatar Dec 21 '22 12:12 SausageMania