Skip to content

Web: fix WindowEvent::Resized not using rAF#3790

Merged
daxpedda merged 2 commits into
rust-windowing:masterfrom
daxpedda:resize-request-redraw
Jul 16, 2024
Merged

Web: fix WindowEvent::Resized not using rAF#3790
daxpedda merged 2 commits into
rust-windowing:masterfrom
daxpedda:resize-request-redraw

Conversation

@daxpedda
Copy link
Copy Markdown
Member

This caused two issues:

  • WindowEvent::RedrawRequested send after an WindowEvent::Resized would not be throttled.
  • Using Window::request_redraw() after an WindowEvent::Resized will cause two WindowEvent::RedrawRequested events. The first one not throttled and the second one throttled by rAF.

Probably a leftover from #2896.

@daxpedda daxpedda added the DS - web Affects the Web backend (WebAssembly/WASM) label Jul 16, 2024
@daxpedda daxpedda added this to the Version 0.30.4 milestone Jul 16, 2024
@daxpedda daxpedda merged commit 8e23d16 into rust-windowing:master Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DS - web Affects the Web backend (WebAssembly/WASM)

Development

Successfully merging this pull request may close these issues.

2 participants