diff options
author | Stijn Buys <ingar@osirion.org> | 2015-01-06 22:32:11 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2015-01-06 22:32:11 +0000 |
commit | 62eec5977f15fc50f3c2c428f30c40879af09943 (patch) | |
tree | b9082d78a76a5f47a4d22e64cae5048b8a51ea8c | |
parent | bae25b0b688e95f821d4c305a3a6e8e4a64e8c6e (diff) |
Corrected an issue in the scrollbar mousewheel handling.
-rw-r--r-- | src/ui/scrollbar.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |