mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 18:08:26 +00:00
Refactor to prepare for follow-on change
This commit is contained in:
parent
80dd8dd9a4
commit
ef03265a77
@ -81,13 +81,14 @@ impl ApplicationHandler for DisplayState {
|
||||
_: WindowId,
|
||||
event: WindowEvent,
|
||||
) {
|
||||
let window = &self.window;
|
||||
let Some(viewer) = &mut self.viewer else {
|
||||
return;
|
||||
};
|
||||
|
||||
let input_event = input_event(
|
||||
&event,
|
||||
&self.window,
|
||||
window,
|
||||
&self.held_mouse_button,
|
||||
viewer.cursor(),
|
||||
self.invert_zoom,
|
||||
|
Loading…
Reference in New Issue
Block a user