From d5dadec229d47254e712416a5d409173251b3b88 Mon Sep 17 00:00:00 2001 From: flowerpewpew Date: Fri, 3 May 2024 21:34:05 +0100 Subject: [PATCH] Fix !guiSliderDragging && --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index ecbdf6e..4888409 100644 --- a/src/main.c +++ b/src/main.c @@ -1502,7 +1502,7 @@ int main(void){ static Vector2 mouseDownPosition; if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) mouseDownPosition = GetMousePosition(); - if (fabsf(GetMouseWheelMove()) > 0.01 && !guiSliderDragging && mouseAction == CONTROL_NONE ) { + if (fabsf(GetMouseWheelMove()) > 0.01 && mouseAction == CONTROL_NONE ) { Vector2 delta = GetMouseWheelMoveV(); if (IsKeyDown(KEY_LEFT_ALT)) { @@ -1516,7 +1516,7 @@ int main(void){ #endif UpdateCameraPro(&camera, (Vector3){0, -delta.x/10, 0}, Vector3Zero(), 0); } - } else if (IsMouseButtonDown(MOUSE_LEFT_BUTTON) && mouseAction == CONTROL_NONE && Vector2Distance(mouseDownPosition, GetMousePosition()) > 1) { + } else if (IsMouseButtonDown(MOUSE_LEFT_BUTTON) && !guiSliderDragging && mouseAction == CONTROL_NONE && Vector2Distance(mouseDownPosition, GetMousePosition()) > 1) { mouseAction = CONTROL_ROTATE_CAMERA; }