Skip to content

Commit

Permalink
Fix copy&paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
valaphee committed Feb 15, 2023
1 parent 579e565 commit b6fa51b
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 @@ -176,7 +176,7 @@ pub fn ui_focus_system(
let mut max = ui_position + extents;
if let Some(clip) = node.calculated_clip {
min = Vec2::max(min, clip.clip.min);
max = Vec2::max(max, clip.clip.max);
max = Vec2::min(max, clip.clip.max);
}

let contains_cursor = cursor_position
Expand Down

0 comments on commit b6fa51b

Please sign in to comment.