Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message_view: Update autoscroll on message sent. #29387

Closed
wants to merge 1 commit into from

Conversation

N-Shar-ma
Copy link
Collaborator

Updates the autoscroll behavior when sending a message. Will now autoscroll to the bottom of the message list if bottom of the view is visible, moving the message selection to the message at the top of the view.

Fixes #23298.

(Updated, rebased on main version of original PR #23539 by @JoeyPriceless)

Updates the autoscroll behavior when sending a message. Will now
autoscroll to the bottom of the message list if bottom of the view is
visible, moving the message selection to the message at the top of
the view.

Fixes zulip#23298.
@zulipbot zulipbot added size: XL area: message feed (scrolling) Scroll behavior, performance, and side-effects (marking as read) post release Issues to focus attention on after the current major release priority: high UI experiment Design direction to be evaluated labels Mar 21, 2024
@zulipbot
Copy link
Member

Hello @zulip/design members, this pull request was labeled with the "UI experiment" label, so you may want to check it out!

@alya
Copy link
Contributor

alya commented Mar 21, 2024

Hm, I'm seeing something weird happening with the scroll down button.

  1. Have just a bit of space visible at the bottom.
  2. Send (a long-ish?) message.

The message ends up being tight to the compose box, and the button for scrolling down is shown. The button sticks around unexpectedly when you scroll down.

Screenshot 2024-03-21 at 12 46 35 AM

@alya
Copy link
Contributor

alya commented Mar 21, 2024

I think it would look better to scroll down a bit further, leaving some blank space above the compose box. I dunno if that will help with the scroll button issue as well.

@alya
Copy link
Contributor

alya commented Mar 21, 2024

I'm excited to see progress on this one!

@N-Shar-ma
Copy link
Collaborator Author

@alya This PR is just a rebased version of #23298 which now on closer inspection I realize was never really approved (there were other PRs based off it, so I'd wrongly assumed that it worked as expected, and was just out of date), and some of the complex code changes there do not make sense to me...

So I worked on a less complex fix from scratch myself, #29398. It resolves the issues you faced on testing this. If you think #29398 works better, I'll close this in its favour. Please check it out!

@N-Shar-ma
Copy link
Collaborator Author

Closed in favour of #29398

@N-Shar-ma N-Shar-ma closed this Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: message feed (scrolling) Scroll behavior, performance, and side-effects (marking as read) post release Issues to focus attention on after the current major release priority: high size: XL UI experiment Design direction to be evaluated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scroll to sent message when bottom of the screen is in view
4 participants