cookbook: Handle all possible mouse scroll directions
authorElliot Smith <elliot.smith@intel.com>
Wed, 11 Aug 2010 10:10:53 +0000 (11:10 +0100)
committerElliot Smith <elliot.smith@intel.com>
Wed, 11 Aug 2010 17:16:07 +0000 (18:16 +0100)
Added empty cases for MOUSE_SCROLL_LEFT and MOUSE_SCROLL_RIGHT
to the scroll-event signal handler in the example code.

doc/cookbook/examples/events-mouse-scroll.c

index 46dbaf1..b9c1c31 100644 (file)
@@ -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,