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
This commit is contained in:
Michael Bouchaud (yoz) 2019-01-24 10:05:14 +01:00
parent d483302a13
commit eb10662030
1 changed files with 0 additions and 3 deletions

View File

@ -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);