summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_evdev.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-14 03:35:09 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-14 03:35:09 -0400
commit63787ee4592de40a104029636eaf6adfef43782e (patch)
treeaabde892946f0c2dda0d7bfc89f4eda99628903d /src/lib/elput/elput_evdev.c
parent1a339c9e5918f6d8672755d566cac622f1d9c2d3 (diff)
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 1a339c9e5918f6d8672755d566cac622f1d9c2d3 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/elput/elput_evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index 392a25fc48..6f9de940e8 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -897,7 +897,7 @@ _pointer_axis_value(struct libinput_event_pointer *event, enum libinput_pointer_
897 switch (source) 897 switch (source)
898 { 898 {
899 case LIBINPUT_POINTER_AXIS_SOURCE_WHEEL: 899 case LIBINPUT_POINTER_AXIS_SOURCE_WHEEL:
900 val = 10 * libinput_event_pointer_get_axis_value_discrete(event, axis); 900 val = libinput_event_pointer_get_axis_value_discrete(event, axis);
901 break; 901 break;
902 case LIBINPUT_POINTER_AXIS_SOURCE_FINGER: 902 case LIBINPUT_POINTER_AXIS_SOURCE_FINGER:
903 case LIBINPUT_POINTER_AXIS_SOURCE_CONTINUOUS: 903 case LIBINPUT_POINTER_AXIS_SOURCE_CONTINUOUS: