Temzasse / react-modal-sheet

Flexible bottom sheet component built with Framer Motion to provide buttery smooth UX while keeping accessibility in mind 🪐
https://temzasse.github.io/react-modal-sheet/
MIT License
783 stars 74 forks source link

Not able to do horizontal scroll on IOS #110

Closed lucasluca closed 1 year ago

lucasluca commented 1 year ago

I'm trying to scroll horizontally, on android works OK, but not on IOS, anyone had the same issue?

Temzasse commented 1 year ago

Thanks for reporting this 👍🏻

I've narrowed the problem down to usePreventScroll hook that this library uses internally. I still need to figure out how to fix this scrolling issue while preserving body scroll locking functionality 🤔

Temzasse commented 1 year ago

Related issue: https://github.com/adobe/react-spectrum/issues/3779

Temzasse commented 1 year ago

This should be fixed in v1.10.0.

I ended up copying the usePreventScrolll implementation to the repo and applied this fix to it.