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 doesn't work properly sometimes #24

Open
SPAHI4 opened this issue Sep 7, 2023 · 0 comments
Open

Scroll restoration doesn't work properly sometimes #24

SPAHI4 opened this issue Sep 7, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SPAHI4
Copy link
Owner

SPAHI4 commented Sep 7, 2023

How to reproduce:

  1. go to a page with 10+ photos like https://spahi4.me/location/istanbul
  2. open 6th+ photo
  3. navigate back

How it should behave:

Scroll position should be properly restored

Current behavior:

The scroll could be set incorrectly to the bottom of the page

Environment:

Production, development

Browser:

Latest chrome

Details:

document.startViewTransition API conflicts with <ScrollRestoration> component

@SPAHI4 SPAHI4 added the bug Something isn't working label Sep 7, 2023
@SPAHI4 SPAHI4 self-assigned this Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant