Fix scroll events direction on Wayland.

This commit is contained in:
Bartosz Taudul 2022-12-19 21:11:53 +01:00
parent 7f00ae8c83
commit ac87b05dcb
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -103,11 +103,11 @@ static void PointerAxis( void*, struct wl_pointer* pointer, uint32_t time, uint3
s_wheel = true; s_wheel = true;
if( axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL ) if( axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL )
{ {
s_wheelAxisX += value; s_wheelAxisX -= value;
} }
else else
{ {
s_wheelAxisY += value; s_wheelAxisY -= value;
} }
} }