mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
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
This commit is contained in:
parent
b58ad983d0
commit
c8c9057b1e
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue