mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 01:48:28 +00:00
Make name of constant more explicit
This commit is contained in:
parent
fca81513ff
commit
72051f0bbd
@ -211,7 +211,7 @@ fn input_event(
|
||||
WindowEvent::MouseWheel { delta, .. } => {
|
||||
let delta = match delta {
|
||||
MouseScrollDelta::LineDelta(_, y) => {
|
||||
f64::from(*y) * ZOOM_FACTOR_LINE
|
||||
f64::from(*y) * CAMERA_ZOOM_SENSITIVITY_LINE
|
||||
}
|
||||
MouseScrollDelta::PixelDelta(PhysicalPosition {
|
||||
y, ..
|
||||
@ -230,7 +230,7 @@ fn input_event(
|
||||
///
|
||||
/// Given a specific input, smaller values mean that the camera moves less,
|
||||
/// larger values mean it moves more.
|
||||
const ZOOM_FACTOR_LINE: f64 = 0.075;
|
||||
const CAMERA_ZOOM_SENSITIVITY_LINE: f64 = 0.075;
|
||||
|
||||
/// # Sensitivity of camera zoom, given scroll wheel input in pixels
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user