mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Fix crash when using infinite widgets (#7296)
* Closes https://github.com/emilk/egui/issues/7100
This commit is contained in:
@@ -91,6 +91,8 @@ pub fn hit_test(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close.retain(|rect| !rect.interact_rect.any_nan()); // Protect against bad input and transforms
|
||||||
|
|
||||||
// When using layer transforms it is common to stack layers close to each other.
|
// When using layer transforms it is common to stack layers close to each other.
|
||||||
// For instance, you may have a resize-separator on a panel, with two
|
// For instance, you may have a resize-separator on a panel, with two
|
||||||
// transform-layers on either side.
|
// transform-layers on either side.
|
||||||
|
|||||||
Reference in New Issue
Block a user