mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 10:58:28 +00:00
Flatten level of indentation
This commit is contained in:
parent
525bc8588d
commit
0d27e84e83
@ -60,14 +60,14 @@ impl Viewer {
|
||||
|
||||
/// Handle an input event
|
||||
pub fn handle_input_event(&mut self, event: InputEvent) {
|
||||
if let Some(focus_point) = self.focus_point {
|
||||
let Some(focus_point) = self.focus_point else {
|
||||
return;
|
||||
};
|
||||
|
||||
match event {
|
||||
InputEvent::Translation { previous, current } => {
|
||||
self.camera.apply_translation(
|
||||
previous,
|
||||
current,
|
||||
focus_point,
|
||||
);
|
||||
self.camera
|
||||
.apply_translation(previous, current, focus_point);
|
||||
}
|
||||
InputEvent::Rotation { angle_x, angle_y } => {
|
||||
self.camera.apply_rotation(angle_x, angle_y, focus_point);
|
||||
@ -77,7 +77,6 @@ impl Viewer {
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/// Handle the screen being resized
|
||||
pub fn handle_screen_resize(&mut self, screen_size: ScreenSize) {
|
||||
|
Loading…
Reference in New Issue
Block a user