From 0d0673a0af27d042e3a3e1075d6020fce2691046 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Tue, 8 Oct 2024 09:07:09 +0200 Subject: [PATCH] clean --- src/explo_state.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/explo_state.rs b/src/explo_state.rs index a269bfc..1e4814a 100644 --- a/src/explo_state.rs +++ b/src/explo_state.rs @@ -113,10 +113,12 @@ pub fn zoom( mut projection_query: Query<&mut Projection, With>, ) { let Ok(mut projection) = projection_query.get_single_mut() else { + //info!("no camera projection"); return; }; let Projection::Perspective(ref mut perspective) = *projection else { + //info!("no camera perspective"); return; }; @@ -124,9 +126,10 @@ pub fn zoom( match ev.unit { MouseScrollUnit::Line => { perspective.fov = (0.6*PI).min((0.02*PI).max(perspective.fov * 0.9_f32.powf(ev.y))); + //info!("Scroll (line units): vertical: {}, horizontal: {}", ev.y, ev.x); } MouseScrollUnit::Pixel => { - println!("Scroll (pixel units): vertical: {}, horizontal: {}", ev.y, ev.x); + //info!("Scroll (pixel units): vertical: {}, horizontal: {}", ev.y, ev.x); } } }