We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82220d0 commit 1eb078fCopy full SHA for 1eb078f
crates/bevy_ui/src/focus.rs
@@ -164,9 +164,7 @@ pub fn ui_focus_system(
164
// Reset their interaction to None to avoid strange stuck state
165
if let Some(mut interaction) = node.interaction {
166
// We cannot simply set the interaction to None, as that will trigger change detection repeatedly
167
- if *interaction != Interaction::None {
168
- *interaction = Interaction::None;
169
- }
+ interaction.set_if_neq(Interaction::None);
170
}
171
172
return None;
0 commit comments