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 closeThreshold bug #32

Merged
merged 5 commits into from
Aug 7, 2023
Merged

fix closeThreshold bug #32

merged 5 commits into from
Aug 7, 2023

Conversation

Gumbee
Copy link
Contributor

@Gumbee Gumbee commented Aug 7, 2023

The close threshold was not handled correctly and was causing issues with clicks/taps. When clicking on the sheet at a y-coordinate below the close threshold, the sheet would close. Expected behaviour is that it only closes after dragging, not on clicks and that it should close when the user swipes more than closeThreshold * visibleDrawerHeight regardless of the click/tap y-coordinate.

A video of the bug is attached below (note that we need to drag the sheet up first, because the bug only happens when --swipe-amount is set on the sheet)

CloseBug.mov

@vercel
Copy link

vercel bot commented Aug 7, 2023

@Gumbee is attempting to deploy a commit to the emil Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Aug 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vaul ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2023 10:13am

@emilkowalski
Copy link
Owner

This is great, thank you

@emilkowalski emilkowalski merged commit 8336f45 into emilkowalski:main Aug 7, 2023
1 check passed
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.

2 participants