diff options
author | Chris Michael <cpmichael@osg.samsung.com> | 2016-05-14 03:35:09 -0400 |
---|---|---|
committer | Chris Michael <cpmichael@osg.samsung.com> | 2016-05-14 03:35:09 -0400 |
commit | 63787ee4592de40a104029636eaf6adfef43782e (patch) | |
tree | aabde892946f0c2dda0d7bfc89f4eda99628903d | |
parent | 1a339c9e5918f6d8672755d566cac622f1d9c2d3 (diff) | |
download | efl-63787ee4592de40a104029636eaf6adfef43782e.tar.gz |
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>
-rw-r--r-- | src/lib/elput/elput_evdev.c | 2 |
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_ 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: |