Adds mouse wheel input to Fl_Counter

This commit is contained in:
Matthias Melcher 2023-12-16 14:22:22 +01:00
parent ca028872e7
commit 046bf23a5d

View File

@ -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: