elput: Don't multiply pointer axis value
authorChris Michael <cpmichael@osg.samsung.com>
Sat, 14 May 2016 07:35:09 +0000 (03:35 -0400)
committerChris Michael <cpmichael@osg.samsung.com>
Sat, 14 May 2016 07:35:09 +0000 (03:35 -0400)
Reporting of mouse axis values should not be multiplied by 10. This
will cause serious jumps in wheel events. Loosely based on
1a339c9e5918f6d8672755d566cac622f1d9c2d3

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
src/lib/elput/elput_evdev.c

index 392a25f..6f9de94 100644 (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: