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

Doesn't auto-scroll to bottom in some cases #285

Open
nekohayo opened this issue Feb 10, 2021 · 1 comment
Open

Doesn't auto-scroll to bottom in some cases #285

nekohayo opened this issue Feb 10, 2021 · 1 comment

Comments

@nekohayo
Copy link

When posting a message with some hyperlinks to images, Srain displays previews of those images, but they end up expanding below the current view, and Srain doesn't scroll to them, so as it is now "un-stuck" from the bottom of the scrollbar, further messages will not appear in the view because they will be below the current "fold", and you need to manually scroll downwards.

I think there are some other cases where this happens (maybe when reconnecting, or something triggering content below the fold somehow?) but I haven't noticed those other patterns yet.

@SilverRainZ
Copy link
Member

Hi nekohayo, great catch!

Currently Srain only scroll to botoom when message is add. When image is filled to URL previewer (as your said), length of message list changed but Srain doesn't scroll it.

I think there are some other cases where this happens (maybe when reconnecting, or something triggering content below the fold somehow?) but I haven't noticed those other patterns yet.

I haven't thought of this yet, let's fix it when it appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants