FloatingPanel
FloatingPanel copied to clipboard
Feature Request: dismiss interactively from map view
In the system Maps app, the user can interactively dismiss the panel by panning the map. The UX is very well done:
- a pan on the map only affects the panel when the touch moves to near the fold (top of the panel)
- if the downward pan translation is sufficiently large, the panel snaps to the bottom position
- when the user stops panning, the interactive dismissal is cancelled and the panel snaps back to the middle position
- when the user reverses the pan from downwards to upwards, the interactive dismissal is cancelled, too
- an upwards pan starting slightly above the fold is ignored (which is good imo).
I'd love to see such a feature in your FloatingPanel as well. It could be useful not only for a panel on top of a map but also any scrollable view or even non-scrollable views to increase the touch area that is sensitive to dismiss the panel.