From e140aca1b5ce2595336aad4a2300033bd9a9a452 Mon Sep 17 00:00:00 2001 From: Fabrizio Pietrucci Date: Wed, 19 Mar 2025 20:19:19 +0100 Subject: [PATCH] Increase zoom factor in `core_2d_camera.c` This compensate for slower zoom speed due to log scaling --- examples/core/core_2d_camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/core/core_2d_camera.c b/examples/core/core_2d_camera.c index 11c15d448..07766e0fb 100644 --- a/examples/core/core_2d_camera.c +++ b/examples/core/core_2d_camera.c @@ -83,7 +83,7 @@ int main(void) // Camera zoom controls // Uses log scaling to provide consistent zoom speed - camera.zoom = expf(logf(camera.zoom) + ((float)GetMouseWheelMove()*0.05f)); + camera.zoom = expf(logf(camera.zoom) + ((float)GetMouseWheelMove()*0.1f)); if (camera.zoom > 3.0f) camera.zoom = 3.0f; else if (camera.zoom < 0.1f) camera.zoom = 0.1f;