-
-
Notifications
You must be signed in to change notification settings - Fork 657
feat: message tab supports pageup and pagedown (#2623) #2730
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
base: master
Are you sure you want to change the base?
Conversation
|
The approach in this PR is different than in #2496 . Not sure if this is ok or should the method |
|
Sorry it took so long for this feedback! I just had a look at your PR, and one thing I noticed was that the logic related to changing |
|
Hi @cruessler ! Thanks for the feedback. I modified |
|
@xlai89 Thanks for the update! There’s another suggestion I’d like to make.
|
|
@cruessler I stored |
|
We’re almost there, I think! There’s a few minor suggestions I’d still like to make, though. Can you move this line |
|
Oh sure, makes total sense :) |
|
Perfect! I’ve now started testing your changes on my machine, and I observed that I can’t seem to fully scroll to the top when using |
|
You're right. I should have noticed that myself, sorry. After I understand |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor question. Thanks a lot for your patience! :-)
| if old < self.visual_height.get() { | ||
| 0 | ||
| } else { | ||
| old.saturating_sub(self.visual_height.get()) | ||
| .saturating_add(1) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this also work?
| if old < self.visual_height.get() { | |
| 0 | |
| } else { | |
| old.saturating_sub(self.visual_height.get()) | |
| .saturating_add(1) | |
| } | |
| old.saturating_add(1) | |
| .saturating_sub(self.visual_height.get()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely! Thank you very much for your patience and great hints!
This Pull Request fixes/closes #2623 .
It changes the following:
DetailsComponentwith events of PageUp and PageDownI followed the checklist:
make checkwithout errorsMany thanks to #2496 as a clear and good reference.