mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Move code to match order of variants in enum
This commit is contained in:
parent
5b65b6cb98
commit
4b70d7f1a1
@ -126,6 +126,9 @@ impl ApplicationHandler for DisplayState {
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
WindowEvent::CursorMoved { position, .. } => {
|
||||
viewer.on_cursor_movement([position.x, position.y]);
|
||||
}
|
||||
WindowEvent::MouseInput { state, button, .. } => match state {
|
||||
ElementState::Pressed => {
|
||||
self.held_mouse_button = Some(button);
|
||||
@ -136,9 +139,6 @@ impl ApplicationHandler for DisplayState {
|
||||
viewer.remove_focus_point();
|
||||
}
|
||||
},
|
||||
WindowEvent::CursorMoved { position, .. } => {
|
||||
viewer.on_cursor_movement([position.x, position.y]);
|
||||
}
|
||||
WindowEvent::MouseWheel { .. } => viewer.add_focus_point(),
|
||||
WindowEvent::RedrawRequested => {
|
||||
viewer.draw();
|
||||
|
Loading…
Reference in New Issue
Block a user