Open dodg3r opened 1 month ago
This also happens on the person page, when going back it goes to the top making it annoying to deal with a large number of people. A fix for this could also be useful for that page, or really any list page. I don't know if there's a browser of svelte feature that could do it automatically.
Same issue for the search. You open an image, you close it, you end up on top of the search results. Really annoying. (Do tell if I should open a separate issue for that.)
It looks like each page calls goto(previousRoute)
which causes SvelteKit to always go to the top of the page. Accoring to this, setting noscroll: true
should fix it, though I don't know if that will cause any other issues. There's also window.history.back()
which seems like it should work with SvelteKit, but that's not compatible with setting arbitrary back pages through the query parameter.
I'm going to try and fix this for the people page first, and then it should be simple to fix the others too. The way immich handles the sidebar and top nav seems to be the reason it's a little difficult, as the main scrolling area is not the body, but a smaller div inside.
This also happens on iOS
It is happening on Android app too. Very annoying.
The bug
I have a lot of albums in the library "Album".
When I scroll down and select an album and then go back to albums, I end up at the top of the page again. This only happens in web and not in the app.
I think it´s be better to stay at the scrollingpoint as it is in the app.
The OS that Immich Server is running on
Ubuntu 22.10
Version of Immich Server
v1.109.2
Version of Immich Mobile App
v1.109.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response