raster pushed a commit to branch efl-1.20.

http://git.enlightenment.org/core/efl.git/commit/?id=a4c99f63585d19f8833d19f631c2bb2caf051494

commit a4c99f63585d19f8833d19f631c2bb2caf051494
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Aug 17 17:50:57 2017 +0900

    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
---
 src/lib/elementary/efl_ui_image_zoomable.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/efl_ui_image_zoomable.c 
b/src/lib/elementary/efl_ui_image_zoomable.c
index 6bc07a9a90..ca4bc23a57 100644
--- a/src/lib/elementary/efl_ui_image_zoomable.c
+++ b/src/lib/elementary/efl_ui_image_zoomable.c
@@ -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);
      }

-- 


Reply via email to