Mixer: Fix direction of value dragging for vertical sliders.
This commit is contained in:
parent
8856216d86
commit
8109c20e5c
|
@ -158,6 +158,9 @@ int Fl_Value_SliderX::handle(int event) {
|
|||
|
||||
// if (!step()) goto DEFAULT;
|
||||
delta = mx-ix;
|
||||
if (!horizontal())
|
||||
delta = -delta;
|
||||
|
||||
if (delta > 5) delta -= 5;
|
||||
else if (delta < -5) delta += 5;
|
||||
else delta = 0;
|
||||
|
|
Loading…
Reference in New Issue