-
Notifications
You must be signed in to change notification settings - Fork 71
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
cn.history.js.org - Scroll position not remembered when returning back #74843
Comments
This happens on both desktop and mobile Firefoxes and makes the reading experience very bad. It works well on both desktop and mobile Chromes. |
There is a console error. when I click on it calls in https://cn.history.js.org/index.js function popstateHandler() {
rerender(location).catch(errorHandler);
} with then it reaches window.ReactDOM.render(window.React.createElement(Layout, props), document);
if (!hash) {
window.scrollTo(0, 0);
} else {
document.getElementById(hash.slice(1))?.scrollIntoView();
} in Gecko and Blink (Edge) And both go back to the top of the page. I have no differences. note that both engines display:
@softvision-oana-arbuzov do you have a difference in between blink Edge and blink Chrome on desktop? @lilydjwg agreed that's painful, but this is happening on both Edge and Firefox. But this is working in Safari Tech Preview! Interesting. Oh… maybe a race issue. |
hmmm in fact if I read this correctly, the site is asking to back to the top of the page with So somehow Firefox And Edge do the right thing. |
@doodlewind Is the owner of the site. @lilydjwg Could you open an issue there? |
Sure, I'm opening. |
Thanks @lilydjwg . Closing the issue as duplicate of doodlewind/jshistory-cn#33 |
URL: https://cn.history.js.org/part-1.html
Browser / Version: Firefox 90.0
Operating System: Linux
Tested Another Browser: Yes Chrome
Problem type: Something else
Description: scroll position not remembered between
Steps to Reproduce:
Scroll and click a note link to navigate to the footnotes page, then go back. The scroll position is not remembered in Firefox.
View the screenshot
Browser Configuration
View console log messages
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: