diff options
Diffstat (limited to 'src/gui/widgets/slider.cpp')
-rw-r--r-- | src/gui/widgets/slider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/slider.cpp b/src/gui/widgets/slider.cpp index a08d94440..77ae38931 100644 --- a/src/gui/widgets/slider.cpp +++ b/src/gui/widgets/slider.cpp @@ -360,7 +360,7 @@ void Slider::mousePressed(MouseEvent &event) const int width = mDimension.width; const int height = mDimension.height; - if (event.getButton() == MouseEvent::LEFT + if (event.getButton() == MouseButton::LEFT && x >= 0 && x <= width && y >= 0 && y <= height) { event.consume(); |