Formatted with fmt

This commit is contained in:
stevedagiraffe 2019-10-03 09:16:46 +10:00
parent 8680e92548
commit f1b78d21c8
2 changed files with 6 additions and 4 deletions

View File

@ -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")

View File

@ -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,
)),
_ => {}
},
_ => {}