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

Scroll restoration #20

Closed
wiebekaai opened this issue Mar 14, 2024 · 2 comments
Closed

Scroll restoration #20

wiebekaai opened this issue Mar 14, 2024 · 2 comments

Comments

@wiebekaai
Copy link

Hi, I'm for my page transitions both the old + new content are visible during the transitions. In my onEnterCompleted I clean this up.

The issue I have is that navigating scrolls to top but then does scroll restoration. Can I disable this fully or always scroll to top?

Thanks!

@wiebekaai
Copy link
Author

Was overthinking it I guess history.scrollRestoration = 'manual';

@jakewhiteley
Copy link
Member

Hi,

Yeah that is the approach I normally use as well!

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

No branches or pull requests

2 participants