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:
Chris Michael 2016-05-14 03:35:09 -04:00
parent 1a339c9e59
commit 63787ee459
1 changed files with 1 additions and 1 deletions

View File

@ -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: