zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 943f4fa1bdead36d2526224c43ea1426ecf9ec43
parent 515fde8af546f5d93a258a71fe04f1b8ac9ce17d
Author: Christopher A. Oliver <[email protected]>
Date:   Tue, 27 Oct 2015 16:02:19 -0400

Fix sense of vertical sliders.

Diffstat:
Msrc/UI/Fl_Osc_Slider.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/UI/Fl_Osc_Slider.cpp b/src/UI/Fl_Osc_Slider.cpp @@ -107,6 +107,8 @@ int Fl_Osc_Slider::handle(int ev, int X, int Y, int W, int H) step = 1; } int dy = minimum() <= maximum() ? -Fl::e_dy : Fl::e_dy; + // Flip sense for vertical sliders. + dy = (this->type() & 1) ? dy : -dy; handle_drag(clamp(value() + step * dy)); } return 1;