# Card list - return to position

**URL:** <https://community.glideapps.com/t/card-list-return-to-position/23868>\
**Category:** Ask for Help\
**Created:** [March 6, 2021, 6:29pm UTC](https://community.glideapps.com/t/card-list-return-to-position/23868 "2021-03-06T18:29:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)\
**Post date:** [March 6, 2021, 6:29pm UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/1 "2021-03-06T18:29:44Z")

</div>

Is it possible to keep the scroll position for an inline cards list after viewing an item?

I have an horizontal scroll list of cards with about 16 cards and 3 on view at any 1 time. It’s frustrating that Glide resets the list position to always view the first 3 cards when going back after viewing any item.

Any tips?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 6, 2021, 6:35pm UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/2 "2021-03-06T18:35:47Z")

</div>

It’s been brought up before, but I don’t think there is an easy fix.

> [@Please fix Horizontal scrolling flaw](https://community.glideapps.com/t/please-fix-horizontal-scrolling-flaw/12782):
>
> When scrolling vertically, you can click into details, and you come right back to the same point in the list that you were. If you scroll horizontally and click details page, you go right to beginning of the list of items. This is problematic and frustrating for users. I am hoping this resonates with the Glide team, is a quick fix, and can be addressed quickly. This is probably a feature request, but since it’s a design flaw and doesn’t following the same applicable scrolling rule as Vertical S…

---

<div class="post-metadata">

**Author:** ![Caleb\_Tipton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/caleb_tipton/32/32423_2.png) [@Caleb\_Tipton](https://community.glideapps.com/u/Caleb_Tipton)\
**Post date:** [September 28, 2021, 4:59pm UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/3 "2021-09-28T16:59:38Z")

</div>

> When scrolling vertically, you can click into details, and you come right back to the same point in the list that you were

In my, admittedly limited, experience, you do not come back to the same point in the list that you were. For me, as the list gets longer (50-100 items), the scroll position is off far enough that the edited card is not even on the screen after coming back from an edit… Even if it’s a pop-up form (Show Form Screen action). Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [September 29, 2021, 3:47pm UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/4 "2021-09-29T15:47:10Z")

</div>

I also experience some issues when scrolling vertically. Even if I do something simple like view details and then navigate back to the list… it moves around on me (most of the time)

---

<div class="post-metadata">

**Author:** ![VTPharaoh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vtpharaoh/32/39837_2.png) [@VTPharaoh](https://community.glideapps.com/u/VTPharaoh)\
**Post date:** [March 15, 2022, 9:59pm UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/5 "2022-03-15T21:59:58Z")

</div>

We must be working on a similar project today! I got on the forum to specifically search this question because I was having the same issues. Horizontal scrolling makes much more sense in the app I’m making, but if it won’t return to my current position it makes it unusable in that orientation.

---

<div class="post-metadata">

**Author:** ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)\
**Post date:** [March 16, 2022, 10:11am UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/6 "2022-03-16T10:11:53Z")

</div>

Well 1 year later and I think I have spotted a hack to make it work!

https://player.vimeo.com/video/688776526?h=db1697fcf7&app_id=122963

You can play for yourself using this link

> **[Simon's Project](https://dynosort.glideapp.io/)**

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 16, 2022, 10:20am UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/7 "2022-03-16T10:20:43Z")

</div>

That’s an awful lot of columns…

Couldn’t you just create a single if-then-else column:

- If Timestamp is empty, then Now
- Else Timestamp

You still have your action that sets the timestamp, and then sort by the if-then-else column? 🤔

---

<div class="post-metadata">

**Author:** ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)\
**Post date:** [March 16, 2022, 10:23am UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/8 "2022-03-16T10:23:40Z")

</div>

Sounds like a nice simplification but would that keep the desired UX, e.g. the linear list is converted into a loop that always has the same sequence of elements but the start position changes.

If I understand correctly, your suggestion simply moves the last viewed item to the beginning of the linear list?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 16, 2022, 1:41pm UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/9 "2022-03-16T13:41:59Z")

</div>

ah, I see - you need to maintain the order.  
Okay, I missed that.  
hmm, will have a think and see what I can come up with.  
Not because there’s anything wrong with your solution.  
But, Tim Toady 😉

---

<div class="post-metadata">

**Author:** ![VTPharaoh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vtpharaoh/32/39837_2.png) [@VTPharaoh](https://community.glideapps.com/u/VTPharaoh)\
**Post date:** [March 17, 2022, 5:05am UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/10 "2022-03-17T05:05:40Z")

</div>

Thank you for the suggestion! I will have to watch this a few more times to grasp it all as I’m newer to Glide. Would this work with a filter applied as well? To be clear, I’m not asking if this could be done with a filter instead, I’m asking if it can be done while a filter is also applied. My app currently has a card deck that filters out a lot based on a previous user selection.

---

<div class="post-metadata">

**Author:** ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)\
**Post date:** [March 17, 2022, 6:47am UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/11 "2022-03-17T06:47:11Z")

</div>

Yes it will work with any combination of filters. It doesn’t matter what filters you apply to the list.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 17, 2022, 8:48am UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/12 "2022-03-17T08:48:11Z")

</div>

Okay, so here’s my crack at it.  
I wouldn’t say that it’s any simpler than your approach. But seeing as how I did open my big mouth I figured I needed to come up with something, haha 😂

---

<div class="post-metadata">

**Author:** ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)\
**Post date:** [March 17, 2022, 9:27am UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/13 "2022-03-17T09:27:59Z")

</div>

Love it! Also really nice 🙂 Folks might prefer your approach to avoid using dates & timestamps.

And compliments for the super clear talk through…

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:49pm UTC](https://community.glideapps.com/t/card-list-return-to-position/23868/14 "2024-01-17T16:49:36Z")

</div>


