aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index ccf9ed78b3..5079a6f31a 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;