a WindowPlugin with a custom resolution and an overridden scale factor
a WASM app
the browser zoom is changed (CTRL + +/-)
the app crashes.
What went wrong
The problem is that the bevy_winit plugin reacts to the WindowEvent::ScaleFactorChanged, that's received from winit holding a borrow_mut on the ResizeScaleHandle, and immediately requesting a new inner size.
Happens also on the winit 0.30 PR, for the same reason.
Bevy version
Main and 0.13.
What you did
Given:
the app crashes.
What went wrong
The problem is that the
bevy_winit
plugin reacts to theWindowEvent::ScaleFactorChanged
, that's received fromwinit
holding aborrow_mut
on theResizeScaleHandle
, and immediately requesting a new inner size.Happens also on the winit 0.30 PR, for the same reason.