emilkowalski / vaul

An unstyled drawer component for React.
https://vaul.emilkowal.ski
MIT License
5.26k stars 169 forks source link

Allowing scroll within the drawer introduces unreliable dragging on mobile #358

Open pukmajster opened 1 month ago

pukmajster commented 1 month ago

On horizontal drawers, frantic and/or diagonal movements will start dragging the drawer, but only for a small bit, without moving back to it's proper position after letting go of the touch. video

A similar issue can be experienced on vertical drawers, by simply swiping up and down. This exact issue can be found on the official vercel drawers and on the "Scrollable with inputs" example linked in the readme. video

Link for reproduction (vaul 0.9.1)

Tested and reproduced on:

alananisimov commented 1 week ago

I have the same problem. Were you able to find a solution?

pukmajster commented 17 hours ago

Haven't tried it myself yet, but a potential workaround would be to set handleOnly to true. Not ideal though.