From c367dbfc36af58f589ff320ff69eb072dac518e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Wed, 28 Jun 2006 04:52:48 +0000 Subject: [PATCH] Since the slider's handleMouseMoved() clips the new value, there's no need to test if X >= 0. Dragging the slider quickly, we may never get an event where X is exactly 0, so all it does is to make it more difficult to drag the slider to its minimum value. svn-id: r23330 --- gui/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/widget.cpp b/gui/widget.cpp index ccf9ed78b31..5079a6f31a2 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -265,7 +265,7 @@ SliderWidget::SliderWidget(GuiObject *boss, const String &name, uint32 cmd) } void SliderWidget::handleMouseMoved(int x, int y, int button) { - if (isEnabled() && _isDragging && x >= 0) { + if (isEnabled() && _isDragging) { int newValue = posToValue(x); if (newValue < _valueMin) newValue = _valueMin;