You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual: page loads scrolled down to bottom of page.
Logs
None
System Info
System:
OS: Have tested this on Windows 10 and Linux (Mint)
Binaries:
Node: 14.18.1 - /usr/bin/node
npm: 8.1.1 - /usr/bin/npm
Browsers:
Have tested on chrome and Firefox (latest) - happens on both
npmPackages:
@sveltejs/adapter-static: ^1.0.0-next.21 => 1.0.0-next.21
@sveltejs/kit: next => 1.0.0-next.195
svelte: ^3.42.6 => 3.44.1
It looks like the issue started at version next.193. For example, if you clone the above repository and run npm install @sveltejs/kit@1.0.0-next.192 it will work correctly, but if you run npm install @sveltejs/kit@1.0.0-next.193 it will be broken.
I just tested this fix on version next.196 in a production project (in a dev environment) and I am still getting scrolling issues when navigating.
It's very hard to pin down a particular condition because it happens inconsistently. Sometimes the same navigation that worked previously will stop working and vice-versa. I know that I'm not controlling the scroll in any of the components and the body has no margin.
I noticed it happens more often when I scroll past the first half of the page before navigating to another page.
I reverted back to next.192 in the meantime, just wanted to let you know that the issue is still present.
Describe the bug
When scrolling down on a page then clicking a link, the next page is scrolled down when it should not be.
Reproduction
Logs
System Info
Severity
serious
Additional Information
next.193
. For example, if you clone the above repository and runnpm install @sveltejs/kit@1.0.0-next.192
it will work correctly, but if you runnpm install @sveltejs/kit@1.0.0-next.193
it will be broken.The text was updated successfully, but these errors were encountered: