emilkowalski / vaul

An unstyled drawer component for React.
https://vaul.emilkowal.ski
MIT License
5.29k stars 170 forks source link

Prevent pull to refresh gestures #265

Closed WITS closed 4 months ago

WITS commented 4 months ago

This sets the overscroll-behavior to none on the html/body tags while the drawer is open to ensure that the "Pull to refresh" gestures on Android and iOS will never be triggered while dragging the drawer.

This also fixes an issue where the scroll-behavior wasn't being reset

vercel[bot] commented 4 months ago

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

A member of the Team first needs to authorize it.