Conversation
|
Do you think we can use scroll-snap to make it possible to close the sheet with swiping? |
|
I'll check. |
|
:) you mean something like this? It would not work with popover because I don't think we can trigger it on scroll (and it cannot be popover on click and non-popover on drag).
But overall it looks fun. |
|
Such great process. Thank you @pdanpdan for the experiments 🫡 I think "bottom sheet" must be different from what we currently have with daisyUI modal and what makes it different is mainly the swipe behavior. That's why I suggested scroll-snap. I think https://silkhq.com has a great behavior. It's JS of course, I hope we can do a similar UI with CSS scroll-snap.
I would like to experiment on this soon. |
|
I think I got it working: |
|
Amazing! Well done @pdanpdan 🫡
Yeah that's a little bit unpredictable… |
|
It's ios, unpredictable would be to work as in specification. |
|
Why does it need a tap? Is there something not supported in iOS Safari or is it a bug? |
|
It uses scroll-snap - so there is a scrollable container over the screen. |
ref #4377