From: tasn Date: Sun, 24 Jul 2011 11:44:42 +0000 (+0000) Subject: Elm glayer: Fixed mouse_wheel direction for wheel zoom. X-Git-Tag: REL_F_I9200_20111025_1~14^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69de437b124e7aa0f87f7cadec5de3171ecf0f7d;p=framework%2Fuifw%2Felementary.git Elm glayer: Fixed mouse_wheel direction for wheel zoom. Wheel up should be zoom in, not out. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61648 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_gesture_layer.c b/src/lib/elm_gesture_layer.c index 6f655cc..710a630 100644 --- a/src/lib/elm_gesture_layer.c +++ b/src/lib/elm_gesture_layer.c @@ -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)