Skip to content

Commit

Permalink
Web: fix WindowEvent::Resized not using rAF (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Jul 16, 2024
1 parent dc99920 commit 8e23d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/changelog/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,6 @@ changelog entry.

- On Wayland, avoid crashing when compositor is misbehaving.
- Account for different browser engine implementations of pointer movement coordinate space.
- On Web, fix `WindowEvent::Resized` not using `requestAnimationFrame` when sending
`WindowEvent::RedrawRequested` and also potentially causing `WindowEvent::RedrawRequested`
to not be de-duplicated.
2 changes: 1 addition & 1 deletion src/platform_impl/web/event_loop/window_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ impl ActiveEventLoop {
window_id: RootWindowId(id),
event: WindowEvent::Resized(new_size),
});
runner.request_redraw(RootWindowId(id));
canvas.request_animation_frame();
}
}
},
Expand Down

0 comments on commit 8e23d16

Please sign in to comment.