From 0dfe38f31208a4baa0d74fb9a0afe6ee877086b9 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 10 Nov 2023 12:27:41 +0100 Subject: [PATCH] Fix models seemingly not reacting to input They were actually handling the input fine, but the model wasn't redrawn afterwards. This bug must have snuck in with the recent winit upgrade. --- crates/fj-window/src/display.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/fj-window/src/display.rs b/crates/fj-window/src/display.rs index b7840d174..04a7b7adc 100644 --- a/crates/fj-window/src/display.rs +++ b/crates/fj-window/src/display.rs @@ -98,6 +98,9 @@ pub fn display(model: Model, invert_zoom: bool) -> Result<(), Error> { event: WindowEvent::MouseWheel { .. }, .. } => viewer.add_focus_point(), + Event::AboutToWait => { + window.window().request_redraw(); + } Event::WindowEvent { event: WindowEvent::RedrawRequested, ..