Closed mateuszlewko closed 7 months ago
Does it work with a phone? This is supposed to be used with mobile devices as an alternative to dialogs, so the functionality won't be the exact same for desktop devices.
I haven't checked on a phone, but actually simply adding user-select: text
to div inside Drawer.Content resolved the issue. Of course it makes only sense to select text horizontally, as moving it vertically will move the drawer down.
This is supposed to be used with mobile devices as an alternative to dialogs
I'd say the drawer is very cool even on desktop :)
@mateuszlewko When I add user-select: text, I can select the text but the modal would scroll when I move my mouse.
Describe the bug
Hi! Thanks for the awesome port.
Mouse selection doesn't seem to work inside Vaul content component. Is there any way to make it work? Potentially by disabling close gesture (or making it work only at the top of the drawer)?
Reproduction
Try to select any text in demo Vaul: https://www.vaul-svelte.com/examples.
Logs
No response
System Info
Severity
annoyance