# List Scroll Position Not Preserved After Navigating Back from Detail View

**URL:** <https://community.glideapps.com/t/list-scroll-position-not-preserved-after-navigating-back-from-detail-view/81809>\
**Category:** Ask for Help\
**Created:** [May 10, 2025, 3:15am UTC](https://community.glideapps.com/t/list-scroll-position-not-preserved-after-navigating-back-from-detail-view/81809 "2025-05-10T03:15:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio\_C](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/antonio_c/32/39728_2.png) [@Antonio\_C](https://community.glideapps.com/u/Antonio_C)\
**Post date:** [May 10, 2025, 3:15am UTC](https://community.glideapps.com/t/list-scroll-position-not-preserved-after-navigating-back-from-detail-view/81809/1 "2025-05-10T03:15:29Z")

</div>

I’m currently migrating from Classic and running into some challenges with the new interface.

In my Classic app, I display a list of about 5,000 items. When I click on an item, it navigates correctly to the detail view. However, when returning to the list, it scrolls back to the top rather than maintaining the previous scroll position.

Is there a recommended solution or best practice to preserve the scroll position when navigating back to the list? Any guidance would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Mazen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mazen/32/84042_2.png) [@Mazen](https://community.glideapps.com/u/Mazen)\
**Post date:** [May 10, 2025, 3:23am UTC](https://community.glideapps.com/t/list-scroll-position-not-preserved-after-navigating-back-from-detail-view/81809/2 "2025-05-10T03:23:49Z")

</div>

I’ve been having the same issue.. I guess we should change it to a Feature request

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 11, 2025, 12:55am UTC](https://community.glideapps.com/t/list-scroll-position-not-preserved-after-navigating-back-from-detail-view/81809/3 "2025-05-11T00:55:52Z")

</div>

This has been a feature request for a while.

> [@Allow "go back" action to return to same screen position](https://community.glideapps.com/t/allow-go-back-action-to-return-to-same-screen-position/59345):
>
> Hi! Am madly in love with Glide Pages vs Apps, especially the custom collections and containers! Yet, there are still a few kinks that could use some resolving. When going back from a detail view to a list view (or any screen), it goes back to the top of the screen, rather than where you were up to previously in the list. This is a big issue when reviewing lots of data A bit of a lag in Glide pages vs Apps on my Android device. [Loom Recording](https://www.loom.com/share/751da65a1d824c96a672279917e62a6f) When using the inline screen and exiting the scree…

---

<div class="post-metadata">

**Author:** ![Mazen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mazen/32/84042_2.png) [@Mazen](https://community.glideapps.com/u/Mazen)\
**Post date:** [May 17, 2025, 10:14pm UTC](https://community.glideapps.com/t/list-scroll-position-not-preserved-after-navigating-back-from-detail-view/81809/4 "2025-05-17T22:14:39Z")

</div>

cool, Upvoted 🙂

---

<div class="post-metadata">

**Author:** ![mimof](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mimof/32/61945_2.png) [@mimof](https://community.glideapps.com/u/mimof)\
**Post date:** [May 18, 2025, 6:26pm UTC](https://community.glideapps.com/t/list-scroll-position-not-preserved-after-navigating-back-from-detail-view/81809/5 "2025-05-18T18:26:06Z")

</div>

+1 upvoted!

For now, I’m wondering is there a recommended way to have “previous” and “next” buttons on the item details screen of a collection?

---

<div class="post-metadata">

**Author:** ![Mazen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mazen/32/84042_2.png) [@Mazen](https://community.glideapps.com/u/Mazen)\
**Post date:** [May 18, 2025, 7:25pm UTC](https://community.glideapps.com/t/list-scroll-position-not-preserved-after-navigating-back-from-detail-view/81809/6 "2025-05-18T19:25:01Z")

</div>

Data Setup  
1- Add a Row ID column if you don’t already have one  
2- Add a sort order column

Add Computed Columns  
3- Sort Order Index: Add a Row Index column that gives each row a position based on your sort field  
4- Add two Math columns:

- Previous Index = Row Index - 1
- Next Index = Row Index + 1  
5- Create two self-relations:
- Relation to Previous: Match Previous Index to Row Index in the same table
- Relation to Next: Match Next Index to Row Index in the same table

Add Buttons in the Details Screen  
6- On the item details screen, add two **buttons** :

- Previous Button:
  - Action: Show Detail Screen
  - Data: from Relation to Previous

- Next Button:
  - Action: Show Detail Screen
  - Data: from Relation to Next.

And u can use Visibility Conditions to hide the buttons when there’s no next or previous

---

<div class="post-metadata">

**Author:** ![mimof](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mimof/32/61945_2.png) [@mimof](https://community.glideapps.com/u/mimof)\
**Post date:** [May 18, 2025, 8:49pm UTC](https://community.glideapps.com/t/list-scroll-position-not-preserved-after-navigating-back-from-detail-view/81809/7 "2025-05-18T20:49:19Z")

</div>

Fantastic thanks very much @Mazen!
