Adds mouse wheel input to Fl_Counter
This commit is contained in:
parent
ca028872e7
commit
046bf23a5d
@ -197,6 +197,9 @@ int Fl_Counter::handle(int event) {
|
||||
redraw();
|
||||
}
|
||||
return 1;
|
||||
case FL_MOUSEWHEEL:
|
||||
handle_drag(clamp(increment(value(),(Fl::event_dy() - Fl::event_dx()) / 2 )));
|
||||
return 1;
|
||||
case FL_KEYBOARD :
|
||||
switch (Fl::event_key()) {
|
||||
case FL_Left:
|
||||
|
Loading…
Reference in New Issue
Block a user