Skip to content

Port use prevent scroll#114

Open
luizotcarvalho wants to merge 1 commit intounovue:mainfrom
luizotcarvalho:port-use-prevent-scroll
Open

Port use prevent scroll#114
luizotcarvalho wants to merge 1 commit intounovue:mainfrom
luizotcarvalho:port-use-prevent-scroll

Conversation

@luizotcarvalho
Copy link
Copy Markdown

I had a problem trying to dismiss the drawer with scrollable content on iOS, investigating a bit I notice that vaul's repo have a use-prevent-scroll.ts hook that fix that, so I ported to vaul-vue.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Oct 23, 2025

⚠️ No Changeset found

Latest commit: bca6604

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@PolyAtomicIon
Copy link
Copy Markdown

Just wanted to note that this fix would be really helpful for users — the current scroll issue affects real usage, especially on mobile. Appreciate the work done here, and hoping this can be merged when maintainers have time.

@pPitohu
Copy link
Copy Markdown

pPitohu commented Dec 3, 2025

It actually brokes when used with snap points, like [0.5, 0.7] and you scroll down. It blinks to top anchor and then swipes down.
upd: maybe this is not the issue with PR changes, but ported library itself. It doesn't seem to appear in 0.4.1 w/o this PR

@filip-nifti
Copy link
Copy Markdown

It actually brokes when used with snap points, like [0.5, 0.7] and you scroll down. It blinks to top anchor and then swipes down. upd: maybe this is not the issue with PR changes, but ported library itself. It doesn't seem to appear in 0.4.1 w/o this PR

Might be related to the fix i made in #115

@enisbu
Copy link
Copy Markdown

enisbu commented Dec 16, 2025

Is there any update? My hands are tingling 😆

@pPitohu
Copy link
Copy Markdown

pPitohu commented Dec 16, 2025

Is there any update? My hands are tingling 😆

seems like we should fork it and make fixes by ourselves with npm publishing 😄

@filip-nifti
Copy link
Copy Markdown

Is there any update? My hands are tingling 😆

seems like we should fork it and make fixes by ourselves with npm publishing 😄

I tried fixing scrolling with snap points to no avail. I Started from the fork in this pull request but it was still broken. Even without snap points it was broken. Please let me know if you make it work.

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.

6 participants