-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Windows can have surprisingly overlapping ids #5573
Comments
(Using egui-miniquad patched to work with egui 0.30 since it's the only backend that consistently works on my machine.) Since the actual error wasn't mentioned, it is
Full error
Note that the crash only happens when you use two let id = egui::Id::new("foo");
egui::Window::new("Wow").id(id).show(ctx, |ui| {
ui.interact(egui::Rect::ZERO, id.with("move"), egui::Sense::click());
});
let id = egui::Id::new("foo");
egui::Area::new(id).show(ctx, |ui| {
egui::Area::new(id.with("move")).show(ctx, |_|{});
}); Full error with
|
Describe the bug
The following code crashes instantly. I believe the second id overlaps with
egui/crates/egui/src/containers/area.rs
Line 457 in 4784136
"move"
with anything else, everything works.To Reproduce
Expected behavior
No crash.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: