Update crates/bevy_ui/src/focus.rs
Co-authored-by: Giacomo Stevanato <giaco.stevanato@gmail.com>
This commit is contained in:
parent
180416fc89
commit
2eb69d5bcd
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user