Closed hiyaryan closed 8 months ago
The last PR adds a smooth scrolling effect that aligns the Chat box in view and smoothly scrolls to the most recent messages once they are received from the server. This only occurs when the user has sent a message. If the user clicks on a new entry putting it into focus, then no effect occurs. The last messages sent for that entry will be in view without any scrolling effects to prevent react from auto-scrolling to Chat.
Adds a reference to the chat box with a scrollTop property set to the scrollHeight so that recent messages appear first on entry focus and when new messages are submitted.
This PR resolves issue #60.