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
When switching between pages with different scrolls and returning to the previous page, the scroll becomes in the wrong position.
Error example: https://github.com/NewNik/svelteKit-scroll The example has a commented-out piece of code that solves the problem, but this is a dirty hack. https://github.com/NewNik/svelteKit-scroll/blob/master/src/routes/__layout.svelte Possible solution: add tick from svelte before DOM interaction here https://github.com/sveltejs/kit/blob/master/packages/kit/src/runtime/client/renderer.js#L277 In this case, the scroll will have to take place on a new rendered page.
No response
System: OS: Windows 10 10.0.19042 CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz Memory: 21.17 GB / 31.83 GB Binaries: Node: 14.15.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Spartan (44.19041.1266.0), Chromium (95.0.1020.40) Internet Explorer: 11.0.19041.1202 npmPackages: @sveltejs/kit: next => 1.0.0-next.192 svelte: ^3.42.6 => 3.44.1
serious, but I can work around it
The text was updated successfully, but these errors were encountered:
Actually we have #2668 merged that fixes this behaviour, it should be released soon.
Sorry, something went wrong.
Closing as duplicate of #2664.
No branches or pull requests
Describe the bug
When switching between pages with different scrolls and returning to the previous page, the scroll becomes in the wrong position.
Reproduction
Error example: https://github.com/NewNik/svelteKit-scroll
The example has a commented-out piece of code that solves the problem, but this is a dirty hack.
https://github.com/NewNik/svelteKit-scroll/blob/master/src/routes/__layout.svelte
Possible solution: add tick from svelte before DOM interaction here https://github.com/sveltejs/kit/blob/master/packages/kit/src/runtime/client/renderer.js#L277
In this case, the scroll will have to take place on a new rendered page.
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: