mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fix typo (#1675)
This commit is contained in:
parent
ef9c631c65
commit
14783d52a7
1 changed files with 4 additions and 4 deletions
|
@ -356,10 +356,10 @@ void Scrollbar::mouseMoveEvent(QMouseEvent *event)
|
|||
{
|
||||
int delta = event->pos().y() - this->lastMousePosition_.y();
|
||||
|
||||
setDesiredValue(this->desiredValue_ +
|
||||
qreal(delta) /
|
||||
std::max<qreal>(0.00000002, this->trackHeight_ *
|
||||
this->maximum_));
|
||||
setDesiredValue(
|
||||
this->desiredValue_ +
|
||||
(qreal(delta) / std::max<qreal>(0.00000002, this->trackHeight_)) *
|
||||
this->maximum_);
|
||||
}
|
||||
|
||||
this->lastMousePosition_ = event->pos();
|
||||
|
|
Loading…
Reference in a new issue