Added a Scroll to top keyboard shortcut for splits (#3802)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Brian
2022-06-18 07:48:55 -04:00
committed by GitHub
parent fd87cbb626
commit 9583b49653
6 changed files with 17 additions and 0 deletions
+5
View File
@@ -76,6 +76,11 @@ void Scrollbar::scrollToBottom(bool animate)
this->setDesiredValue(this->maximum_ - this->getLargeChange(), animate);
}
void Scrollbar::scrollToTop(bool animate)
{
this->setDesiredValue(this->minimum_ - this->getLargeChange(), animate);
}
bool Scrollbar::isAtBottom() const
{
return this->atBottom_;