forked from enlightenment/efl
elput: Don't multiply pointer axis value
Reporting of mouse axis values should not be multiplied by 10. This
will cause serious jumps in wheel events. Loosely based on
1a339c9e59
@fix
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
1a339c9e59
commit
63787ee459
|
@ -897,7 +897,7 @@ _pointer_axis_value(struct libinput_event_pointer *event, enum libinput_pointer_
|
|||
switch (source)
|
||||
{
|
||||
case LIBINPUT_POINTER_AXIS_SOURCE_WHEEL:
|
||||
val = 10 * libinput_event_pointer_get_axis_value_discrete(event, axis);
|
||||
val = libinput_event_pointer_get_axis_value_discrete(event, axis);
|
||||
break;
|
||||
case LIBINPUT_POINTER_AXIS_SOURCE_FINGER:
|
||||
case LIBINPUT_POINTER_AXIS_SOURCE_CONTINUOUS:
|
||||
|
|
Loading…
Reference in New Issue