mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Formatted with fmt
This commit is contained in:
parent
8680e92548
commit
f1b78d21c8
@ -902,7 +902,9 @@ impl<'a> Widget for SettingsWindow<'a> {
|
||||
.set(state.ids.mouse_zoom_invert_button, ui);
|
||||
|
||||
if self.global_state.settings.gameplay.zoom_inversion != zoom_inverted {
|
||||
events.push(Event::ToggleZoomInvert(!self.global_state.settings.gameplay.zoom_inversion));
|
||||
events.push(Event::ToggleZoomInvert(
|
||||
!self.global_state.settings.gameplay.zoom_inversion,
|
||||
));
|
||||
}
|
||||
|
||||
Text::new("Invert Scroll Zoom")
|
||||
|
@ -378,9 +378,9 @@ impl Window {
|
||||
glutin::DeviceEvent::MouseWheel {
|
||||
delta: glutin::MouseScrollDelta::LineDelta(_x, y),
|
||||
..
|
||||
} if cursor_grabbed && *focused => {
|
||||
events.push(Event::Zoom(y * (zoom_sensitivity as f32 / 100.0) * zoom_inversion))
|
||||
}
|
||||
} if cursor_grabbed && *focused => events.push(Event::Zoom(
|
||||
y * (zoom_sensitivity as f32 / 100.0) * zoom_inversion,
|
||||
)),
|
||||
_ => {}
|
||||
},
|
||||
_ => {}
|
||||
|
Loading…
Reference in New Issue
Block a user