Skip to content

Commit

Permalink
Fix models seemingly not reacting to input
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hannobraun committed Nov 10, 2023
1 parent bc2ee5d commit 0dfe38f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/fj-window/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
..
Expand Down

0 comments on commit 0dfe38f

Please sign in to comment.