useScrollLock: Compensate for scrollbar with padding #3882
Labels
direction: approved
The direction of feature/change is approved by the team. May require some small changes.
enhancement
New feature or request
vue: upstream
Clear and concise description of the problem
Currently, locking the window scroll move the page content because the viewport becomes larger.
Suggested solution
Add an option to compensate by adding padding to the element (html/body) like other popular packages: https://www.npmjs.com/package/body-scroll-lock#reservescrollbargap
Alternative
Wrap this in a composable that does it manually
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: