Open
Description
Upstream issue: floating-ui/floating-ui#3138
On iOS for popups like Select and Menu, the outside press behavior is touchend
+ touchmove
with an ~8px movement threshold. If you pressed and held the screen for >1s, then touchend
also gets ignored.
This:
- Makes it easier to dismiss, requiring a less "intentional" press, allowing you to scroll away to dismiss the popup much more easily and feels far less restrictive and annoying
- Makes it a bit harder to unintentionally dismiss accidentally (the
1s
threshold)
Modal dialogs and drawers on iOS match the native mousedown
event, which requires an intentional/non-sloppy outside press however.
Popover
currently usespointerdown
which doesn't match either behavior. It's less restrictive thanmousedown
, but also too permissive/loose compared to iOS' native behavior.Menu
andSelect
currently usemousedown
, which feels too restrictive — you can't easily scroll away when it's open.Dialog
/AlertDialog
should continue usingmousedown
as-is, as they take up more of the screen with an obstructive backdrop and are modal-like.
Metadata
Metadata
Assignees
Projects
Status
Backlog