added smoothscrolling on new message

This commit is contained in:
fourtf
2018-01-05 03:14:46 +01:00
parent e58c5ec11b
commit 1606ea648b
6 changed files with 27 additions and 13 deletions
+2 -2
View File
@@ -89,9 +89,9 @@ void ScrollBar::addHighlight(ScrollBarHighlight *highlight)
this->mutex.unlock();
}
void ScrollBar::scrollToBottom()
void ScrollBar::scrollToBottom(bool animate)
{
this->setDesiredValue(this->maximum - this->getLargeChange());
this->setDesiredValue(this->maximum - this->getLargeChange(), animate);
}
bool ScrollBar::isAtBottom() const