mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Fix debug_assert triggered by menu/intersect_ray (#7299)
This commit is contained in:
@@ -1465,7 +1465,10 @@ impl PointerState {
|
||||
}
|
||||
|
||||
if let Some(pos) = self.hover_pos() {
|
||||
return rect.intersects_ray(pos, self.direction());
|
||||
let dir = self.direction();
|
||||
if dir != Vec2::ZERO {
|
||||
return rect.intersects_ray(pos, self.direction());
|
||||
}
|
||||
}
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user