-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Scroll position isn't kept when navigating back #11068
Comments
Did some research into this. It seems like this logic exists in the router file in order to handle scroll persistence on the router "push" event. misskey/packages/frontend/src/router.ts Lines 512 to 547 in 6440233
However, as mentioned in the comment, the functionality does not work in "Deck" view, and similarly does not work in "Default" view; this is because the scroll is being handled in the timeline container, rather than in the window. This STILL works in Classic UI though, since the scrolling is happening in the window itself. CleanShot.2023-07-07.at.22.21.00.mp4Also, while I'm showing Classic UI, the scroll persistence logic gets messed up if the timeline moves too quickly when going back in the browser. CleanShot.2023-07-07.at.22.22.38.mp4There's a lot of moving parts to this... 🥲 |
💡 Summary
When viewing TL, if you click any note detail or user, it will jump to that note/user's page. Now, if you click back, it goes back to TL.
I find this old issue #6033 which basically is the same thing, but it was supposed to be fixed long time ago.
🥰 Expected Behavior
The previous TL scroll position is kept.
🤬 Actual Behavior
It always resets back to the top.
📝 Steps to Reproduce
📌 Environment
💻 Frontend
Windows 10 generic desktop, and Android 13 on Pixel 7
Chrome 114.0.5735.199 (Official Build) (64-bit) (cohort: Stable)
https://misskey.io, https://live-theater.net/
13.13.2, 13.13.1
The text was updated successfully, but these errors were encountered: