LemmyNet / jerboa

A native android app for Lemmy
GNU Affero General Public License v3.0
1.17k stars 168 forks source link

Weird scrolling behaviour in post comments #1711

Open Ghoelian opened 3 weeks ago

Ghoelian commented 3 weeks ago

Jerboa Version

0.0.77

Android Version + Phone

Android 15, Pixel 8 pro

Describe The Bug

On this one specific post, if I scroll all the way down to the bottom, and then scroll back up not too fast, the scroll position gets reset constantly.

I haven't seen this happen on any other posts yet.

https://github.com/user-attachments/assets/30f091f9-b788-4b27-b9bc-5da521c103ca

To Reproduce

  1. Open https://lemmy.dbzer0.com/post/30338733
  2. Scroll all the way to the bottom
  3. Scroll back up kinda slowly, doesn't happen when I scroll quick

In the case of a crash or when relevant include the logs

No response

dessalines commented 3 weeks ago

Probably has to do with the rendered picture its scrolling past. This is pretty complicated because compose is probably recalculating the picture dimensions when it scrolls back into view, causing the recompositions. It involves our markdown library, the picture renderer, and our own threaded tree components.