Skip to content

recover scroll state on reload - #3936

Closed
Rich-Harris wants to merge 3 commits into
masterfrom
restore-scroll-on-reload
Closed

Rich-Harris wants to merge 3 commits into
masterfrom
restore-scroll-on-reload

Conversation

@Rich-Harris

Copy link
Copy Markdown
Member

See discussion on #3873 — if you Cmd-W out of a page, then Cmd-Shift-T back into it, Kit loses scroll position. This fixes it. No tests because Playwright doesn't (AFAICT) have a way to simulate that behaviour

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpx changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

@changeset-bot

changeset-bot Bot commented Feb 15, 2022 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b105a49

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Rich-Harris

Copy link
Copy Markdown
Member Author

closing in favour of #3938

@Conduitry
Conduitry deleted the restore-scroll-on-reload branch March 5, 2022 21:48

This branch was successfully deployed

2 active deployments
Preview – kit-svelte-dev — b105a49a Deployed Feb 15, 2022 by vercel[bot]
Preview – kit — b105a49a Deployed Feb 15, 2022 by vercel[bot]
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

Successfully merging this pull request may close these issues.

1 participant