refactor: cleanup and document Scrollbar (#5334)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Co-authored-by: Daniel Sage <sagedanielr@gmail.com>
This commit is contained in:
nerix
2024-05-12 12:52:58 +02:00
committed by GitHub
parent 5c539ebe9a
commit 8202cd0d99
11 changed files with 453 additions and 225 deletions
+2 -2
View File
@@ -51,11 +51,11 @@ ReplyThreadPopup::ReplyThreadPopup(bool closeAutomatically, Split *split)
auto &scrollbar = this->ui_.threadView->getScrollBar();
if (direction == "up")
{
scrollbar.offset(-scrollbar.getLargeChange());
scrollbar.offset(-scrollbar.getPageSize());
}
else if (direction == "down")
{
scrollbar.offset(scrollbar.getLargeChange());
scrollbar.offset(scrollbar.getPageSize());
}
else
{