slower map zoom

This commit is contained in:
yuni 2024-04-20 02:33:37 +02:00
parent d0acc6988f
commit 61986d2f43

View file

@ -161,10 +161,10 @@ pub fn update_map_camera(
} }
let mut change_zoom = 0.0; let mut change_zoom = 0.0;
if keyboard_input.pressed(settings.key_map_zoom_out) { if keyboard_input.pressed(settings.key_map_zoom_out) {
change_zoom += 1.0; change_zoom += 0.5;
} }
if keyboard_input.pressed(settings.key_map_zoom_in) { if keyboard_input.pressed(settings.key_map_zoom_in) {
change_zoom -= 1.0; change_zoom -= 0.5;
} }
for wheel_event in er_mousewheel.read() { for wheel_event in er_mousewheel.read() {
change_zoom -= wheel_event.y * 3.0; change_zoom -= wheel_event.y * 3.0;