diff --git a/crates/bevy_ui/src/focus.rs b/crates/bevy_ui/src/focus.rs index 1230e76a02..1aa7237379 100644 --- a/crates/bevy_ui/src/focus.rs +++ b/crates/bevy_ui/src/focus.rs @@ -267,7 +267,7 @@ pub fn ui_focus_system( // Save the relative cursor position to the correct component if let Some(mut node_relative_cursor_position_component) = node.relative_cursor_position { - // Check that the values are different before save to enable Changed<> query filter + // Avoid triggering change detection when not necessary. node_relative_cursor_position_component.set_if_neq(relative_cursor_position_component); }