forked from enlightenment/efl
Fix: wrong center point between fingers
SVN revision: 68228
This commit is contained in:
parent
027d53b9d5
commit
8b6d86f565
|
@ -2374,7 +2374,7 @@ get_finger_gap_length(Evas_Coord x1, Evas_Coord y1, Evas_Coord x2,
|
||||||
#if defined(DEBUG_GESTURE_LAYER)
|
#if defined(DEBUG_GESTURE_LAYER)
|
||||||
printf("==== HORIZ ====\n");
|
printf("==== HORIZ ====\n");
|
||||||
#endif
|
#endif
|
||||||
*x = (Evas_Coord) (xx / 2);
|
*x = (Evas_Coord) ((x2 > x1) ? (x1 + (xx / 2)) : (x2 + (xx / 2)));
|
||||||
*y = (Evas_Coord) (y1);
|
*y = (Evas_Coord) (y1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2384,7 +2384,7 @@ get_finger_gap_length(Evas_Coord x1, Evas_Coord y1, Evas_Coord x2,
|
||||||
printf("==== VERT ====\n");
|
printf("==== VERT ====\n");
|
||||||
#endif
|
#endif
|
||||||
*x = (Evas_Coord) (x1);
|
*x = (Evas_Coord) (x1);
|
||||||
*y = (Evas_Coord) (yy / 2);
|
*y = (Evas_Coord) ((y2 > y1) ? (y1 + (yy / 2)) : (y2 + (yy / 2)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* END - Compute zoom center point */
|
/* END - Compute zoom center point */
|
||||||
|
|
Loading…
Reference in New Issue