mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Fix bug in ray-rect intersection test (#4595)
This made submenu popups stay open when they perhaps shouldn't be
This commit is contained in:
@@ -628,7 +628,7 @@ impl Rect {
|
|||||||
tmax = tmax.min(ty1.max(ty2));
|
tmax = tmax.min(ty1.max(ty2));
|
||||||
}
|
}
|
||||||
|
|
||||||
tmin <= tmax
|
0.0 <= tmin && tmin <= tmax
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user