This is a reproduction of weird scrolling behaviors with some shadcn-svelte components in iOS Safari.
- Clone this repo
- Run
pnpm install
- Run
pnpm dev --host
or build first withpnpm build
and then runpnpm start --host
- Open the app in iOS (or iPadOS) Safari
- Scroll a bit down
- Tap on the "Open DropdownMenu" button
- Tap anywhere outside the dropdown menu to close it
- See the weird scrolling behavior
- Follow the steps 1 to 5 above
- Tap on the "Open Popover" button
- Tap anywhere outside the popover to close it
- No weird scrolling behavior