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

fix: retain scroll position when going back #1030

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

astagi
Copy link
Member

@astagi astagi commented Oct 24, 2023

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2023

⚡ Lighthouse report for the home page 🏠

Category Score
🟠 Performance 57
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 100

See the full report...

Other pages

@Fupete Fupete requested a review from bfabio October 24, 2023 17:02
@bfabio
Copy link
Member

bfabio commented Oct 25, 2023

Attaching the quick video of a side effect: if you go back and then forward the scroll position is wrong, and if you go back again the position is lost and the viewport jumps to the top.

Screencast.from.2023-10-24.19-27-02.webm

@bfabio
Copy link
Member

bfabio commented Oct 25, 2023

Another feeling I got, we talked about this earlier is: Gatsby has this feature out of the box, and we are not doing anything out of the ordinary that warrants for a special treatment of the scrolling (are we?).

Why do we need to manually set it up? I feel we are missing something in the way this works

@Fupete
Copy link
Collaborator

Fupete commented Nov 8, 2023

@astagi @bfabio how are we doing with scroll/back bugs? I feel we are losing our grip on these... but they are pretty important.

@Fupete Fupete added the bug label Nov 8, 2023
@Fupete Fupete linked an issue Nov 8, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Browser's back button resets scroll to zero
3 participants