We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
astro
2.9.6
None
npm
Linux
Chrome
For viewTransitions:
Regardless of the scroll position of the referring page, the new page is displayed from the beginning
Possible solution: initialize scrollY in the click handler when navigating: navigate('forward', link.href, { scrollY: 0 });
https://stackblitz.com/edit/github-fmqrqm?file=src%2Fpages%2Fother-page.astro
The text was updated successfully, but these errors were encountered:
Fix scroll position in view transition (#7882) (#7911)
c264be3
Successfully merging a pull request may close this issue.
What version of
astro
are you using?2.9.6
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Linux
What browser are you using?
Chrome
Describe the Bug
For viewTransitions:
What's the expected result?
Regardless of the scroll position of the referring page, the new page is displayed from the beginning
Possible solution:
initialize scrollY in the click handler when navigating: navigate('forward', link.href, { scrollY: 0 });
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-fmqrqm?file=src%2Fpages%2Fother-page.astro
Participation
The text was updated successfully, but these errors were encountered: