From 62eec5977f15fc50f3c2c428f30c40879af09943 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 6 Jan 2015 22:32:11 +0000 Subject: Corrected an issue in the scrollbar mousewheel handling. --- src/ui/scrollbar.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/scrollbar.cc b/src/ui/scrollbar.cc index a766b38..38410f4 100644 --- a/src/ui/scrollbar.cc +++ b/src/ui/scrollbar.cc @@ -112,7 +112,7 @@ bool ScrollBar::on_mousewheel(const math::Vector2f & direction) { if (direction.y() > 0 ) { - if (scrollbar_value < scrollbar_maximum) { + if (scrollbar_value > scrollbar_minimum) { scrollbar_value--; emit(EventScrollBarChanged, this); } -- cgit v1.2.3