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
There is an issue when navigating pages within the React App. In the iPhone Layout, the method to adjust the scroll position does not work properly and always behaves according to the existing scroll position.
I have tried both window.scrollTo(0, 0) and React Router's scrollRestoration methods.
library version
1.1.1
Operating System Version
window 11
Browser
Chrome
The text was updated successfully, but these errors were encountered:
This issue seems to be caused by the iPhone layout not remembering the scroll position. I think I can solve the problem by storing the path and scroll information in sessionStorage. What do you think?
@BangDori
Storing the path and scroll information in sessionStorage is a good idea.
However, if we can figure out why the scroll position is not being remembered in the first place, we might be able to come up with a better solution. I'm curious to know what you think is causing this issue.
My guess is that the browser remembers the scroll position relative to the viewport, so it doesn't remember the scroll position inside the iPhone layout.
Can you set the viewport based on the iPhone layout?
Describe the bug
There is an issue when navigating pages within the React App. In the iPhone Layout, the method to adjust the scroll position does not work properly and always behaves according to the existing scroll position.
I have tried both
window.scrollTo(0, 0)
and React Router'sscrollRestoration
methods.library version
1.1.1
Operating System Version
window 11
Browser
Chrome
The text was updated successfully, but these errors were encountered: