forked from enlightenment/efl
efl-wl: multiply axis events by 10 to send normalized values
ref T6443
This commit is contained in:
parent
60028fafb7
commit
abc88c498e
|
@ -2178,9 +2178,9 @@ comp_surface_mouse_wheel(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EI
|
||||||
axis = WL_POINTER_AXIS_HORIZONTAL_SCROLL;
|
axis = WL_POINTER_AXIS_HORIZONTAL_SCROLL;
|
||||||
|
|
||||||
if (ev->z < 0)
|
if (ev->z < 0)
|
||||||
dir = -wl_fixed_from_int(abs(ev->z));
|
dir = -wl_fixed_from_int(abs(10 * ev->z));
|
||||||
else
|
else
|
||||||
dir = wl_fixed_from_int(ev->z);
|
dir = wl_fixed_from_int(10 * ev->z);
|
||||||
|
|
||||||
if (cs->dead) return;
|
if (cs->dead) return;
|
||||||
s = seat_find(data, ev->dev);
|
s = seat_find(data, ev->dev);
|
||||||
|
|
Loading…
Reference in New Issue