Commit 79320c81 authored by Harry van Haaren's avatar Harry van Haaren

-Fixed #100, mouse scroll on dial working

parent 224af01f
......@@ -172,6 +172,17 @@ class Dial : public Fl_Slider
}
}
return 1;
case FL_MOUSEWHEEL:
{
float val = value() - Fl::event_dy() * 0.1;
//printf("dial scroll event: %f\n", val);
if ( val > 1.0 ) val = 1.0;
if ( val < 0.0 ) val = 0.0;
set_value( val );
redraw();
do_callback();
}
break;
case FL_RELEASE:
if (highlight) {
highlight = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment