Open WofWca opened 4 months ago
Oh thanks this is annoying me so much, I tried to report it once, but then when I failed to reproduce it on purpose
Ok, a few discoveries. I wrote this test simple bench:
And the issue is also present there, so I suppose it's not something specific to Delta Chat.
What I found is sometimes the message list stays scrolled down under specific circumstances:
<textarea>
up. The last message will hide behind it (the issue).https://github.com/user-attachments/assets/030491be-55d5-42ae-9e1c-75d7ed7f8e2b
This looks Chromium-internal. This behavior is not reproducible on Firefox. This is also why the issue looks not 100% reproducible.
I suppose a hacky solution would be to, on initial render
I also looked at Signal code (which doesn't have this issue) and played around with it using dev tools (./Signal.exe --enable-dev-tools
), and I found that if this element is removed from DOM, then the buggy behavior comes in.
This is where they use the element. They set newIsNearBottom = true
if the element is visible and go from there, supposedly scrolling chat to bottom (but I didn't check further).
So they're taking a more thorough approach and not the hacky one that I mentioned above.
Operating System (Linux/Mac/Windows/iOS/Android): Windows
Delta Chat Version: 1.44.0
Expected behavior: The last message stays visible
Actual behavior: The chat scrolls up a little and the last message is obstructed. If new messages arrive, they are also obstructed.
Steps to reproduce the problem:
Screenshots:
https://github.com/deltachat/deltachat-desktop/assets/39462442/ae733a96-0b52-4d01-b472-c34b374e0b6e
Logs: none
On the video I've caught a rare case where this doesn't happen for a few lines, but then it starts happening again. I always found it about the most annoying thing about Delta Chat Desktop.
Workaround: keep pressing "Page Down" while you're writing your message.
Related:
654