prose-im / prose-app-web

Prose Web application. XMPP client for team messaging.
https://prose.org/downloads
Mozilla Public License 2.0
19 stars 2 forks source link

Maintain scroll position when content changes #77

Closed nesium closed 1 month ago

nesium commented 3 months ago

When you've typed enough text into the message textfield that it contains multiple lines and scrolled the conversation to the bottom (so that you can see the last message), typing another character will move the last message behind the textfield.

https://github.com/prose-im/prose-app-web/assets/39174/9c0e18a0-3305-4513-996f-179c43f43398

valeriansaliou commented 3 months ago

Is it still happening for you? I can't seem to reproduce, at least on master latest.

nesium commented 3 months ago

Seems to work fine now.

nesium commented 3 months ago

I'm going to reopen this as an issue to maintain the scroll position. Two new scenarios that I've discovered:

  1. When drafting a multi-line message the textfield grows above the (last) message I'm referring to, even if the message list is scrolled to the bottom.
  2. When someone adds a reaction to a message above the last message, the last message is pushed down behind the textfield.
  3. When someone adds a reaction to the last message, the reaction is partially truncated.

In summary I would define the rules as: