Open imsfc opened 7 months ago
When the editor window is created but not entered by the mouse or loses focus directly from the viewport area of the editor window: assert!(self.pointer_used, false);
assert!(self.pointer_used, false);
I think it should be modified:
pub fn viewport_interaction_active(&self) -> bool { !self.pointer_used - || matches!( + && matches!( self.active_editor_interaction, Some(ActiveEditorInteraction::Viewport) ) }
The || is actually correct, the root cause of this problem is https://github.com/mvlabat/bevy_egui/issues/272
||
I see, || is indeed correct, thanks.
When the editor window is created but not entered by the mouse or loses focus directly from the viewport area of the editor window:
assert!(self.pointer_used, false);
I think it should be modified: