yoz pushed a commit to branch master.

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

commit eb10662030ffc6742360025ff7ca884b5d987cf1
Author: Michael Bouchaud (yoz) <[email protected]>
Date:   Thu Jan 24 10:05:14 2019 +0100

    elm_gesture_layer: Allow a negative zoom with scroll wheel
    
    Summary:
    In my point of view, we have no reasons to forbid a negative zoom here.
    This make gesture_layer more user friendly as we have no more arbitrary
    constaint. (A good example is elm_map)
    
    Reviewers: tasn, zmike, raster, cedric
    
    Reviewed By: cedric
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D7725
---
 src/lib/elementary/elm_gesture_layer.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/lib/elementary/elm_gesture_layer.c 
b/src/lib/elementary/elm_gesture_layer.c
index 2ea1c69589..c711e2a184 100644
--- a/src/lib/elementary/elm_gesture_layer.c
+++ b/src/lib/elementary/elm_gesture_layer.c
@@ -3296,9 +3296,6 @@ _zoom_with_wheel_test(Evas_Object *obj,
          if (st->zoom_wheel->z > 0) /* zoom out */
            st->info.zoom -= (sd->zoom_finger_factor * sd->zoom_wheel_factor);
 
-         if (st->info.zoom < 0.0)
-           st->info.zoom = 0.0;
-
          st->info.momentum = _zoom_momentum_get
              (st, st->zoom_wheel->timestamp, st->info.zoom);
 

-- 


Reply via email to