Skip to content

Commit

Permalink
Fix mouse_clicked check for touches. (bevyengine#2029)
Browse files Browse the repository at this point in the history
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 :)
  • Loading branch information
nihohit authored and robtfm committed May 17, 2022
1 parent 0237963 commit 22d94d8
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 @@ -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()
Expand Down

0 comments on commit 22d94d8

Please sign in to comment.