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:
parent
6f3a1c3b3f
commit
5ac0eac84d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue