Elm glayer: Fixed mouse_wheel direction for wheel zoom.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 24 Jul 2011 11:44:42 +0000 (11:44 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 24 Jul 2011 11:44:42 +0000 (11:44 +0000)
Wheel up should be zoom in, not out.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61648 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_gesture_layer.c

index 6f655cc..710a630 100644 (file)
@@ -2188,10 +2188,10 @@ _zoom_with_wheel_test(Evas_Object *obj, void *event_info,
               st->info.x  = st->zoom_wheel->canvas.x;
               st->info.y  = st->zoom_wheel->canvas.y;
 
-              if (st->zoom_wheel->z > 0) /* zoom in */
+              if (st->zoom_wheel->z < 0) /* zoom in */
                 st->info.zoom += (wd->zoom_finger_factor * wd->zoom_wheel_factor);
 
-              if (st->zoom_wheel->z < 0) /* zoom out */
+              if (st->zoom_wheel->z > 0) /* zoom out */
                 st->info.zoom -= (wd->zoom_finger_factor * wd->zoom_wheel_factor);
 
               if (st->info.zoom < 0.0)