[Map] Tunnig rotate callback because of gesture layer merge
authorTae-Hwan Kim <the81.kim@samsung.com>
Wed, 22 Feb 2012 07:39:31 +0000 (16:39 +0900)
committerTae-Hwan Kim <the81.kim@samsung.com>
Wed, 22 Feb 2012 07:39:31 +0000 (16:39 +0900)
Change-Id: I21ec1ccbabfc1a8dba848da4c4fcb4a47d272aec

src/lib/elm_map.c

index d9adef9..50658f6 100644 (file)
@@ -2943,7 +2943,7 @@ rotate_cb(void *data, void *event_info)
         Elm_Gesture_Rotate_Info *ei = event_info;
         evas_object_geometry_get(wd->obj, &x, &y, &w, &h);
 
-        wd->rotate.d = wd->rotate.a + (ei->base_angle-ei->angle)*50;
+        wd->rotate.d = wd->rotate.a + ei->angle - ei->base_angle;
         wd->rotate.cx = x + ((double)w * 0.5);
         wd->rotate.cy = y + ((double)h * 0.5);