From 72a018890911fb7d39bac70e994cc1fe1395a236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Gonz=C3=A1lez=20Amestoy?= Date: Sun, 24 Apr 2022 15:55:22 +0200 Subject: [PATCH] - Fix issue #2371 --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index 5e579006a..26fe01a81 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; }