Browse Source

Mixer: Fix direction of value dragging for vertical sliders.

tags/non-daw-v1.2.0
Jonathan Moore Liles 10 years ago
parent
commit
8109c20e5c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      FL/Fl_Value_SliderX.C

+ 3
- 0
FL/Fl_Value_SliderX.C View File

@@ -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…
Cancel
Save