libinput: fix invalid use of axis func

This commit is contained in:
Vaxry 2024-06-29 18:20:08 +02:00
parent c7fa62afe8
commit d0b4e69eda
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ void Aquamarine::CSession::handleLibinputEvent(libinput_event* e) {
continue; continue;
aqe.axis = axis == LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL ? IPointer::AQ_POINTER_AXIS_VERTICAL : IPointer::AQ_POINTER_AXIS_HORIZONTAL; aqe.axis = axis == LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL ? IPointer::AQ_POINTER_AXIS_VERTICAL : IPointer::AQ_POINTER_AXIS_HORIZONTAL;
aqe.delta = libinput_event_pointer_get_axis_value(pe, axis); aqe.delta = libinput_event_pointer_get_scroll_value(pe, axis);
aqe.direction = IPointer::AQ_POINTER_AXIS_RELATIVE_IDENTICAL; aqe.direction = IPointer::AQ_POINTER_AXIS_RELATIVE_IDENTICAL;
if (libinput_device_config_scroll_get_natural_scroll_enabled(device)) if (libinput_device_config_scroll_get_natural_scroll_enabled(device))
aqe.direction = IPointer::AQ_POINTER_AXIS_RELATIVE_INVERTED; aqe.direction = IPointer::AQ_POINTER_AXIS_RELATIVE_INVERTED;