-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Most examples seem to be working, but some close instantly after slightest interaction with the drawer when opened inside of a PWA. For example the "Snap Points" and "Scaled Background" examples.
Steps to reproduce:
- Go to https://vaul-base.vercel.app/examples (on iOS device)
- "Add to Home Screen" (to install as PWA)
- Scroll to "Snap Points" and click on "Open Drawer"
The latest published version of Vaul (1.1.2) also has some issues with Snap points when used inside of a PWA; notably the use of window.innerWidth and window.innerHeight return incorrect values on iOS when read immediately after a "resize" event (which Vaul's implementation relies on), whereas these values are correct after an "orientationchange" event (deprecated) if my memory serves me well. Found your repo through base-ui drawer "placeholder" issue.
Metadata
Metadata
Assignees
Labels
No labels