From fa504097bbd2578a5303f90b49f1226083cb4281 Mon Sep 17 00:00:00 2001 From: yuni Date: Mon, 25 Nov 2024 23:30:15 +0100 Subject: [PATCH] map: faster zoom speed --- src/camera.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index 27d19c8..66e6a81 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -397,7 +397,7 @@ pub fn update_map_camera( } mapcam.target_zoom_level = (mapcam.target_zoom_level * 1.1f64.powf(change_zoom)).clamp(min_zoom, max_zoom); - let zoom_speed = 0.05; // should be between 0.0001 (slow) and 1.0 (instant) + let zoom_speed = 0.50; // should be between 0.0001 (slow) and 1.0 (instant) mapcam.zoom_level = (zoom_speed * mapcam.target_zoom_level + (1.0 - zoom_speed) * mapcam.zoom_level) .clamp(min_zoom, max_zoom);