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

non-smooth scrolling #135

Open
free-electrician opened this issue May 8, 2023 · 4 comments
Open

non-smooth scrolling #135

free-electrician opened this issue May 8, 2023 · 4 comments

Comments

@free-electrician
Copy link

Scrolling down in the conversation view is not smooth, sometimes several lines are skipped at once.

To Reproduce
Steps to reproduce the behavior:

  1. Join an active channel from https://search.jabber.network
  2. Select another room or contact in the conversations list
  3. Wait for the unread messages number to pile-up to a couple hundred messages
  4. Select the room in the conversations list again
  5. Slowly scroll down and observe occasional jumpy, non-smooth scrolling

Expected behavior
Scrolling should always be smooth

Desktop:

  • OS: macOS
  • Version 11
@hantu85
Copy link
Contributor

hantu85 commented May 8, 2023

Scrolling will never be smooth as during scrolling data is loaded (ie. preview for links) and then the view is updated. The size of the preview can be determined only after the linked site is fetched and that is done when you actually are about to see the message containing the link.

This is done this way to not fetch all links at once when message history is fetched (especially if someone may decide not to look at links at all).

The same goes for attachments.

However, the root cause of that is Apple AppKit (framework for UI on macOS) which decides that if the size of a message in the conversation log changes, then it doesn't keep the correct location on the screen during scrolling.

We have planned to switch from AppKit to SwiftUI in future versions and that may change this behavior. Due that and the fact that is it "inconvenience" and not critical issue, this will not be worked on currently.

@free-electrician
Copy link
Author

Thank you for your answer. Is it possible to somehow mitigate this inconvenience? It still happens when link previews and attachments are disabled.

@hantu85
Copy link
Contributor

hantu85 commented May 11, 2023

It still will be happening if you have messages which are multiline (the text of the message is wrapped). That is also causing resizing of the message just before it is displayed causing scrolling issues.

@hantu85
Copy link
Contributor

hantu85 commented May 11, 2023

And there is no solution for that.

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

No branches or pull requests

2 participants