You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the very useful crate that bevy_egui is.
Trying to resize window using mouse doesn't work, as confirmed using example simple.rs.
When putting mouse cursor near a window edge, the cursor doesn't change into resizing style (thin double arrow cursor) and there is no way to resize the window.
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.run();
}
When adding bevy_egui resizing window with mouse doesn't work anymore:
use bevy::prelude::*;
use bevy_egui::EguiPlugin;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(EguiPlugin)
.run();
}
By default, for bevy WinitSettings the value for focused_ mode is UpdateMode::Continuous which is needed for games, and we can observe the problem that the cursor doesn't change to resizing style when near window edges.
And when we change focused_mode to UpdateMode::Reactive, with adding:
... the cursor at first correctly switches to resize style when nearing window edge, but then reverts to arrow within less than a second, which matches the 1 second wake up delay set with UpdateMode::Reactive above.
So apparently the resize action is cancelled when bevy wakes up, or more probably at each beginning of its cycle (as witnessed with UpdateMode::Continuous). I couldn't find where exactly though.
The text was updated successfully, but these errors were encountered:
Thanks for the very useful crate that
bevy_egui
is.Trying to resize window using mouse doesn't work, as confirmed using example
simple.rs
.When putting mouse cursor near a window edge, the cursor doesn't change into resizing style (thin double arrow cursor) and there is no way to resize the window.
Versions (current):
bevy = "0.8.1"
bevy_egui = "0.16.1"
Without
bevy_egui
this simple example works:When adding
bevy_egui
resizing window with mouse doesn't work anymore:By default, for bevy
WinitSettings
the value forfocused_ mode
isUpdateMode::Continuous
which is needed for games, and we can observe the problem that the cursor doesn't change to resizing style when near window edges.And when we change
focused_mode
toUpdateMode::Reactive
, with adding:... the cursor at first correctly switches to resize style when nearing window edge, but then reverts to arrow within less than a second, which matches the 1 second wake up delay set with
UpdateMode::Reactive
above.So apparently the resize action is cancelled when bevy wakes up, or more probably at each beginning of its cycle (as witnessed with
UpdateMode::Continuous
). I couldn't find where exactly though.The text was updated successfully, but these errors were encountered: