photocam: Fix key zoom in/out

Zoom +/- doesn't work well as this is a multiplication factor.

Test scenario:
 - elementary_test -to Photocam

Then click on the image, and press + or - on the keyboard.

@fix
This commit is contained in:
Jean-Philippe Andre 2017-08-17 17:50:57 +09:00
parent 20a5968c12
commit acdef50276
1 changed files with 2 additions and 2 deletions

View File

@ -1017,14 +1017,14 @@ _key_action_zoom(Evas_Object *obj, const char *params)
if (!strcmp(dir, "in"))
{
zoom = elm_photocam_zoom_get(obj);
zoom -= 0.5;
zoom /= 1.5;
elm_photocam_zoom_mode_set(obj, ELM_PHOTOCAM_ZOOM_MODE_MANUAL);
elm_photocam_zoom_set(obj, zoom);
}
else if (!strcmp(dir, "out"))
{
zoom = elm_photocam_zoom_get(obj);
zoom += 0.5;
zoom *= 1.5;
elm_photocam_zoom_mode_set(obj, ELM_PHOTOCAM_ZOOM_MODE_MANUAL);
elm_photocam_zoom_set(obj, zoom);
}