Skip to content

Commit

Permalink
Fix bug in ray-rect intersection test
Browse files Browse the repository at this point in the history
This made submenu popups stay open when they perhaps shouldn't be
  • Loading branch information
emilk committed May 31, 2024
1 parent d4ac91a commit ffa0c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/emath/src/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ impl Rect {
tmax = tmax.min(ty1.max(ty2));
}

tmin <= tmax
0.0 <= tmin && tmin <= tmax
}
}

Expand Down

0 comments on commit ffa0c73

Please sign in to comment.