Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controlling what scroll position is saved #2403

Open
posva opened this issue Nov 13, 2024 · 0 comments
Open

Controlling what scroll position is saved #2403

posva opened this issue Nov 13, 2024 · 0 comments
Labels
discussion This problem still needs more feedback enhancement New feature or request

Comments

@posva
Copy link
Member

posva commented Nov 13, 2024

Controlling what scroll position is saved
RFC at vuejs/rfcs#38 is not flexible enough: what about named views, what about scrolling multiple elements in the page.
A better option could be customising the computation of the scrollPosition saved in the history state as well as the restoration of that given scrollPosition. This would be a replacement for current scrollBehavior option and maybe we could internally refactor ours to do that

Another possibility is to move this to an official plugin similar to https://github.com/antfu/vue-router-better-scroller

@posva posva converted this from a draft issue Nov 13, 2024
@posva posva added enhancement New feature or request discussion This problem still needs more feedback labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion This problem still needs more feedback enhancement New feature or request
Projects
Status: 💬 In discussion
Development

No branches or pull requests

1 participant