bevy/crates/bevy_winit/src
aloucks 8628545122 Fix window freezing when dragged or resized on Windows (#18004)
# Objective

Fixes #17488

## Solution

The world update logic happened in the the `about_to_wait` winit window
callback, but this is is not correct as (1) the winit documentation
states that the callback should not be used for that purpose and (2) the
callback is not fired when the window is resized or being dragged.
However, that callback was used in #11245 to fix an iOS bug (which
caused the regression). The solution presented here is a workaround
until the event loop code can be re-written.

## Testing

I confirmed that the `eased_motion` example continued to be animated
when dragging or resizing the window.


https://github.com/user-attachments/assets/ffaf0abf-4cd7-479b-83e9-e1850aaf3513
2025-02-24 23:16:53 +01:00
..
accessibility.rs Remove accesskit re-export from bevy_a11y (#16257) 2024-11-11 22:14:07 +01:00
converters.rs Correctly feature gate custom_cursor (#16093) 2024-11-05 22:31:36 +01:00
cursor.rs properly flag using CustomCursor::Url in wasm (#16255) 2024-11-11 21:50:47 +01:00
lib.rs Correctly feature gate custom_cursor (#16093) 2024-11-05 22:31:36 +01:00
state.rs Fix window freezing when dragged or resized on Windows (#18004) 2025-02-24 23:16:53 +01:00
system.rs Reduce iOS cpu usage (#16548) 2024-11-29 01:50:42 +01:00
winit_config.rs Reduce iOS cpu usage (#16548) 2024-11-29 01:50:42 +01:00
winit_monitors.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
winit_windows.rs Add bevy_window::Window options for MacOS (#15820) 2024-10-11 21:11:21 +00:00