Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
0HyperCube committed Jun 26, 2023
1 parent a0d6433 commit 4f5b358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/focus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ pub fn ui_focus_system(
while let Some(node) = iter.fetch_next() {
if let Some(mut interaction) = node.interaction {
if mouse_clicked {
if node.entity != Some(focus.entity) {
if focus.entity != Some(node.entity) {
*focus = Focus {
entity: Some(node.entity),
focus_visible: false,
Expand Down

0 comments on commit 4f5b358

Please sign in to comment.