Skip to content

Commit 7f6cab0

Browse files
committed
fixed incorrect condition
1 parent 8d88f8b commit 7f6cab0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fyrox-ui/src/popup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ impl Control for Popup {
557557
event: &OsEvent,
558558
) {
559559
if let OsEvent::MouseInput { state, .. } = event {
560-
if *state != ButtonState::Pressed && !*self.is_open {
560+
if *state != ButtonState::Pressed || !*self.is_open {
561561
return;
562562
}
563563

0 commit comments

Comments
 (0)