cookbook: Handle all possible mouse scroll directions
Added empty cases for MOUSE_SCROLL_LEFT and MOUSE_SCROLL_RIGHT to the scroll-event signal handler in the example code.
This commit is contained in:
parent
f1312e118d
commit
0f919fcbe3
@ -27,6 +27,9 @@ _scroll_event_cb (ClutterActor *scroll,
|
||||
case CLUTTER_SCROLL_DOWN:
|
||||
y += SCROLL_AMOUNT;
|
||||
break;
|
||||
case CLUTTER_SCROLL_LEFT:
|
||||
case CLUTTER_SCROLL_RIGHT:
|
||||
break;
|
||||
}
|
||||
|
||||
y = CLAMP (y,
|
||||
|
Loading…
Reference in New Issue
Block a user