diff --git a/src/widgets/scrollbar.cpp b/src/widgets/scrollbar.cpp index cd67f00878d..913d3fd5508 100644 --- a/src/widgets/scrollbar.cpp +++ b/src/widgets/scrollbar.cpp @@ -340,8 +340,7 @@ void scrollbar::handle_event(const SDL_Event& event) new_state = on_grip ? ACTIVE : NORMAL; } else if (state_ == DRAGGED && groove.h != grip.h) { int y_dep = e.y - grip.y - mousey_on_grip_; - int dep = y_dep * static_cast(full_height_ - grip_height_) / - static_cast(groove.h - grip.h); + int dep = y_dep * static_cast(full_height_ - grip_height_) / (groove.h - grip.h); move_position(dep); } break;