diff --git a/src/xf86libinput.c b/src/xf86libinput.c index 69f7ae3..b8e1145 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -1296,12 +1296,7 @@ xf86libinput_handle_axis(InputInfoPtr pInfo, struct libinput_event_pointer *even axis = LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL; if (libinput_event_pointer_has_axis(event, axis)) { - if (source == LIBINPUT_POINTER_AXIS_SOURCE_WHEEL) { - value = libinput_event_pointer_get_axis_value_discrete(event, axis); - value *= driver_data->scroll.vdist; - } else { - value = libinput_event_pointer_get_axis_value(event, axis); - } + value = libinput_event_pointer_get_axis_value(event, axis); valuator_mask_set_double(mask, 3, value); } @@ -1310,12 +1305,7 @@ xf86libinput_handle_axis(InputInfoPtr pInfo, struct libinput_event_pointer *even axis = LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL; if (libinput_event_pointer_has_axis(event, axis)) { - if (source == LIBINPUT_POINTER_AXIS_SOURCE_WHEEL) { - value = libinput_event_pointer_get_axis_value_discrete(event, axis); - value *= driver_data->scroll.hdist; - } else { - value = libinput_event_pointer_get_axis_value(event, axis); - } + value = libinput_event_pointer_get_axis_value(event, axis); valuator_mask_set_double(mask, 2, value); }