Skip to content

Commit

Permalink
Merge pull request #2085 from hannobraun/redraw
Browse files Browse the repository at this point in the history
Fix models seemingly not reacting to input
  • Loading branch information
hannobraun authored Nov 10, 2023
2 parents bc2ee5d + 0dfe38f commit bc9f61e
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 bc9f61e

Please sign in to comment.