From f2c7b0d3bf689f57162b98ab133f9f3a4d7a9643 Mon Sep 17 00:00:00 2001 From: Juan Carlos González Amestoy Date: Sun, 24 Apr 2022 17:05:45 +0200 Subject: - Fix issue #2371 (#2437) --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rcore.c b/src/rcore.c index 5e579006..26fe01a8 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -5409,7 +5409,7 @@ static void MouseCursorPosCallback(GLFWwindow *window, double x, double y) // GLFW3 Scrolling Callback, runs on mouse wheel static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffset) { - if ((float)xoffset != 0.0f) CORE.Input.Mouse.currentWheelMove = (float)xoffset; + if (fabs(xoffset)>fabs(yoffset)) CORE.Input.Mouse.currentWheelMove = (float)xoffset; else CORE.Input.Mouse.currentWheelMove = (float)yoffset; } -- cgit v1.2.3