fix typo (#1675)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user