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

Fix/scroll view #59

Merged
merged 4 commits into from
Jun 27, 2023
Merged

Fix/scroll view #59

merged 4 commits into from
Jun 27, 2023

Conversation

tarkah
Copy link
Member

@tarkah tarkah commented Jun 27, 2023

Fixes a few issues related to scrollview:

  • Changing message time to DateTime removed nanosecond precision which makes using Limit::Since not reliable for filtering since a specific message.
  • Macos trackpad w/ multiple on_scroll events between views caused some issues.

Scrolling extremely fast on trackpad either from top of scrollable down or bottom up should be very reliable now.

@casperstorm can you confirm you can't break scrollable from either top or bottom (home / end) then scroll? I usually issue a /list in server to ensure scrollable is huge and scroll like crazy.

Copy link
Member

@casperstorm casperstorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, and I havent been able to break it yet.

High resolution trackpads like macos might send us
multiple on_scroll messages between frames. Previous
logic didn't account for this which would put scroll
view into an invalid state.
@tarkah tarkah merged commit 7a8aba5 into main Jun 27, 2023
1 check passed
@tarkah tarkah deleted the fix/scroll-view branch June 27, 2023 17:08
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

Successfully merging this pull request may close these issues.

2 participants