From c8c9057b1e2cf5d1721f62900ad0691a98259671 Mon Sep 17 00:00:00 2001 From: fourtf Date: Sat, 5 Aug 2017 22:46:40 +0200 Subject: [PATCH] fixed scrollbar behaving weird at the bottom the scrollbar would not move smoothly at the last message but jump all the way to the bottom instead --- src/widgets/scrollbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/scrollbar.cpp b/src/widgets/scrollbar.cpp index 7f7fc7b53..9882c5fe4 100644 --- a/src/widgets/scrollbar.cpp +++ b/src/widgets/scrollbar.cpp @@ -82,7 +82,7 @@ void ScrollBar::scrollToBottom() bool ScrollBar::isAtBottom() const { - return ((this->getMaximum() - this->getLargeChange()) - this->getCurrentValue()) <= 1; + return ((this->getMaximum() - this->getLargeChange()) - this->getCurrentValue()) <= 0.00001; } void ScrollBar::setMaximum(qreal value)