pachli-android icon indicating copy to clipboard operation
pachli-android copied to clipboard

show less should scroll back to where you were

Open caoilte opened this issue 1 year ago • 2 comments

Describe the bug clicking show less on a long post which you opened up via a show more button doesnt scroll you back to where you were. instead it leaves you at the same scroll point and which takes you back a number if posts in your timeline

To Reproduce

  1. find a very long post
  2. click show more
  3. read it
  4. click show less

Expected behavior scroll back to whete you were

Screenshots or video

https://we.tl/t-ezqJEPRd8x

Versions Android 13.0 pachli 2.5.2

Affirmation I have checked other issues for this project (open and closed) and I cannot find one that matches the problem I am reporting.

caoilte avatar Jun 11 '24 18:06 caoilte

the post i used

https://infosec.exchange/@david_chisnall/112506276259683263

caoilte avatar Jun 11 '24 18:06 caoilte

Note to self: this can't be changed in Android.

Possible approach to try:

After clicking show less, check to see if the post is still on screen somewhere. If it is, do nothing. If it isn't, jump scroll to make the post visible.

That might have significant race conditions, as I'm not sure it's possible to reliably wait until the post collapse animation has completed.

nikclayton avatar Jan 23 '25 09:01 nikclayton