diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-04-17 23:08:25 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-17 23:08:25 +0200 |
commit | 222e03c83e92cb22ad1482b7ec510ee44b521023 (patch) | |
tree | c334bf9c81c4a642af3a7466423875e29a22b343 /plugingui/slider.cc | |
parent | 1a569cd1ef2879680fced10ea3e77e77b896e0c1 (diff) |
Fix some Slider issues.
Diffstat (limited to 'plugingui/slider.cc')
-rw-r--r-- | plugingui/slider.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugingui/slider.cc b/plugingui/slider.cc index 2a82a54..ed23fad 100644 --- a/plugingui/slider.cc +++ b/plugingui/slider.cc @@ -135,7 +135,7 @@ void Slider::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) void Slider::scrollEvent(ScrollEvent* scrollEvent) { - current_value += scrollEvent->delta/(float)getControlWidth(); + current_value -= scrollEvent->delta/(float)getControlWidth(); if (current_value < 0.) { current_value = 0.; @@ -145,6 +145,8 @@ void Slider::scrollEvent(ScrollEvent* scrollEvent) } redraw(); + clickNotifier(); + valueChangedNotifier(current_value * _4GB); // TODO: Scale up to full range } std::size_t Slider::getControlWidth() const |