diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
