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:
Elliot Smith 2010-08-11 11:10:53 +01:00
parent f1312e118d
commit 0f919fcbe3

View File

@ -27,6 +27,9 @@ _scroll_event_cb (ClutterActor *scroll,
case CLUTTER_SCROLL_DOWN: case CLUTTER_SCROLL_DOWN:
y += SCROLL_AMOUNT; y += SCROLL_AMOUNT;
break; break;
case CLUTTER_SCROLL_LEFT:
case CLUTTER_SCROLL_RIGHT:
break;
} }
y = CLAMP (y, y = CLAMP (y,