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 incorrect offset when content is scrolled on iOS safari #35

Merged
merged 3 commits into from
Aug 9, 2023

Conversation

emilkowalski
Copy link
Owner

@emilkowalski emilkowalski commented Aug 9, 2023

The drawer was sometimes not pinned to the bottom depending on whether Safari's tabs where visible or not. Fixed it by not running the usePreventScroll hook when the drawer is animating, but rather after that, which calculates the offset correctly.

@vercel
Copy link

vercel bot commented Aug 9, 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 9, 2023 8:27am

@emilkowalski emilkowalski changed the title Fix incorrect offset when content is scrolled on iOS safari. Fix incorrect offset when content is scrolled on iOS safari Aug 9, 2023
@emilkowalski emilkowalski merged commit 817d099 into main Aug 9, 2023
2 checks 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.

None yet

1 participant