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 scrolling state at windows edge #1937

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

H3rnand3zzz
Copy link
Contributor

See commit message, it's descriptive.

No memory stuff -> no need for valgrind.

@jubalh
Copy link
Member

jubalh commented Dec 5, 2023

BTW if you dont write "see commit message" and have only 1 commit. Then the commit message should be taken automatically. So with one commit it doesn't make sense to write this :)

@jubalh
Copy link
Member

jubalh commented Dec 5, 2023

08:18:32 - atomicwatch: https://github.com/profanity-im/profanity/commit/88b4fdd50ee162d8734843f965d657a522a6fc62                                                                                                
           I just noticed this, I think I reviewed the pr but I made a mistake the _reached_top_of_database is a value that will apply to all MUCs and chats, so you can scroll in one chat until you get to the 
           top of the database, then switch to another and not be at the top. jubalh, H3rnand3zzz what do you think?    

Maybe that commit should be mentioned as well.

@jubalh jubalh added this to the next milestone Dec 5, 2023
src/ui/win_types.h Outdated Show resolved Hide resolved
The problem: if user scrolled to the edge of the window, the state that
edge is reached, transfers to other windows, rendering user unable to
scroll further up/down in other windows as well.

Make unique states for each window that show that edge of the DB is reached.

Later it might be improved with MAM states as well to decrease load on program
in cases when user keeps scrolling despite reaching the edge.

Bug discovered by @atomicwatch, reported through the developers' MUC

`SCROLL_INNER` naming suggestion by @jubalh
@jubalh jubalh merged commit 0e66cbe into profanity-im:master Dec 5, 2023
6 checks passed
@H3rnand3zzz H3rnand3zzz deleted the fix/db-edge-scrolling branch December 5, 2023 14:40
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.

None yet

2 participants