Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix home gesture collision #17

Merged
merged 3 commits into from
Apr 30, 2022

Conversation

melle
Copy link
Contributor

@melle melle commented Apr 25, 2022

The home-gesture on iOS devices without a physical home button can collide with the
DragGesture that is attached to the bottom sheet. The gesture allows to hide the
presented bottom sheet by dragging the top bar down to the edge of the screen.

However, when swiping up from the bottom to send the app to the background, the
gesture still receives changes. When the bottom sheet is hidden, this can lead to a
miscalculation of the sheet position. See the attached video:

BackgroundProblem

The fix is to ignore the swipe-up gesture when the bottom sheet is hidden.

The home-gesture on iOS devices without a physical home button can collide with the
DragGesture that is attached to the bottom sheet. The gesture allows to hide the
presented bottom sheet by dragging the top bar down to the edge of the screen.

However, when swiping up from the bottom to send the app to the background, the
gesture still receives changes. When the bottom sheet is hidden, this can lead to a
miscalculation of the sheet position. See the attached video to the PR.

The fix is to ignore the swipe-up gesture when the bottom sheet is hidden.
@weitieda
Copy link
Owner

👍🏼 Thanks for fixing this. I've left few comments.

@weitieda weitieda merged commit 9233e6e into weitieda:master Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants