Skip to content

Commit

Permalink
Update crates/eframe/src/web/web_runner.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Ernerfeldt <[email protected]>
  • Loading branch information
jprochazk and emilk authored May 27, 2024
1 parent 5223dae commit a908425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/eframe/src/web/web_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ impl WebRunner {
let closure = Closure::once({
let runner_ref = self.clone();
move || {
// we can paint now, so clear the animation frame
// this drop the `closure` and allows another
// We can paint now, so clear the animation frame.
// This drops the `closure` and allows another
// animation frame to be scheduled
let _ = runner_ref.frame.take();
events::paint_and_schedule(&runner_ref)
Expand Down

0 comments on commit a908425

Please sign in to comment.