[Feature] Return to folder view scrolls to and highlights the last viewed asset #31782
lalakiop
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
Summary
When browsing assets in the Folders view, tapping a photo opens the full-screen asset viewer. After swiping through several photos and then going back, the folder list stays at the position where the user originally entered (the asset that was tapped), not where they stopped browsing. It would be nice if the list automatically scrolled to the last viewed asset and highlighted it on return.
Proposed behavior
Technical notes (from code)
assetViewerProvideris a global provider and is not reset when the viewer closes, so the last viewedcurrentAssetis still readable after pop (mobile/lib/providers/asset_viewer/asset_viewer.provider.dart).mobile/lib/pages/library/folder/folder.page.dart) currently opens the viewer withunawaited(context.pushRoute(AssetViewerRoute(...)))and itsListViewhas noScrollController, so no scroll-back logic exists.BaseAsset.refersToSameAsset().LargeLeadingTilealready supportsselected/selectedTileColor, which can be reused for the highlight.Platform
All reactions