forked from enlightenment/efl
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:
parent
d483302a13
commit
eb10662030
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue