From 14783d52a7e86b587d80cf932d67b038de18c040 Mon Sep 17 00:00:00 2001 From: SLCH Date: Thu, 7 May 2020 02:21:08 +0400 Subject: [PATCH] fix typo (#1675) --- src/widgets/Scrollbar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widgets/Scrollbar.cpp b/src/widgets/Scrollbar.cpp index 1bc3c19cf..dcf9c3c08 100644 --- a/src/widgets/Scrollbar.cpp +++ b/src/widgets/Scrollbar.cpp @@ -356,10 +356,10 @@ void Scrollbar::mouseMoveEvent(QMouseEvent *event) { int delta = event->pos().y() - this->lastMousePosition_.y(); - setDesiredValue(this->desiredValue_ + - qreal(delta) / - std::max(0.00000002, this->trackHeight_ * - this->maximum_)); + setDesiredValue( + this->desiredValue_ + + (qreal(delta) / std::max(0.00000002, this->trackHeight_)) * + this->maximum_); } this->lastMousePosition_ = event->pos();