Mixer: Fix direction of value dragging for vertical sliders.

This commit is contained in:
Jonathan Moore Liles 2013-09-28 17:02:17 -07:00
parent 8856216d86
commit 8109c20e5c
1 changed files with 3 additions and 0 deletions

View File

@ -158,6 +158,9 @@ int Fl_Value_SliderX::handle(int event) {
// if (!step()) goto DEFAULT; // if (!step()) goto DEFAULT;
delta = mx-ix; delta = mx-ix;
if (!horizontal())
delta = -delta;
if (delta > 5) delta -= 5; if (delta > 5) delta -= 5;
else if (delta < -5) delta += 5; else if (delta < -5) delta += 5;
else delta = 0; else delta = 0;