elementar/elm_map : Patch from Bluezery.

===============================
Previsouly i have tested rotation with old version of gesture layer in
touch devices.
Recent gesture layer gives somewhat different event information. So I
fixed it accordingly.
I tested this patch in touch-enabled device.


SVN revision: 68263
This commit is contained in:
WooHyun Jung 2012-02-22 11:40:09 +00:00
parent 6f3a1c3b3f
commit 5ac0eac84d
1 changed files with 1 additions and 1 deletions

View File

@ -2566,7 +2566,7 @@ _pinch_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);