Fix mouse_clicked check for touches. (#2029)

This seems like a copy-paste from line 72 that was only partially modified.

I don't know how to test this, so please verify me :)
This commit is contained in:
nihohit 2022-05-16 18:00:08 +00:00
parent eb2a8b12e9
commit 646c7e4c50

View file

@ -98,7 +98,7 @@ pub fn ui_focus_system(
}
let mouse_clicked =
mouse_button_input.just_pressed(MouseButton::Left) || touches_input.just_released(0);
mouse_button_input.just_pressed(MouseButton::Left) || touches_input.just_pressed(0);
let mut moused_over_z_sorted_nodes = node_query
.iter_mut()