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 underscrolling issue for alternative scrolling #1952

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

H3rnand3zzz
Copy link
Contributor

See commit message

  • No memory-related stuff, so I guess that valgrind is not required

How to test the functionality

  • open a window with a chat with considerably sized message log (400 messages at least)
  • scroll up at least 300 messages
  • Alt+scroll down (mouse wheel down/arrow down)

When user was scrolling down using alt + mouse wheel/arrows, he would be
stuck in most of the cases after the buffer finishes
due to the part of code that moves the "cursor" up to show full last page.

New algorithm considers close to border cursor as passing for
DB loading condition,
at the same time it calculates offset, allowing flexible scroll size.

The problem was introduced by  @H3rnand3zzz in the following commit:
23692fe
@jubalh jubalh added this to the next milestone Mar 1, 2024
@jubalh jubalh merged commit c6cf27e into profanity-im:master Mar 1, 2024
6 checks passed
@H3rnand3zzz H3rnand3zzz deleted the fix/alt-underscroll branch March 14, 2024 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants