Update scroll sensitivity for discrete mouse wheels

This commit is contained in:
Michael Bradley 2025-05-22 23:04:03 -04:00
parent bef0b66ee1
commit b42563a94d
Signed by: MichaelBradley
SSH key fingerprint: SHA256:o/aaeYtRubILK7OYYjYP12DmU7BsPUhKji1AgaQ+ge4

View file

@ -54,7 +54,7 @@ pub fn zoom_camera(
return Err("Default camera was not orthographic".into());
};
let scroll_type_multiplier = match scroll.unit {
MouseScrollUnit::Line => 0.01,
MouseScrollUnit::Line => 0.1,
MouseScrollUnit::Pixel => 0.001,
};
projection.scale = (projection.scale - scroll.delta.y * scroll_type_multiplier).clamp(0.1, 2.5);