diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..30ff925 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# egui-modal-spinner changelog + +## 2024-12-02 + +### 🐛 Bug Fixes +- Fixed issue with widgets being interactable behind the modal background [#7](https://github.com/fluxxcode/egui-modal-spinner/pull/7) diff --git a/src/lib.rs b/src/lib.rs index d9da113..2212a33 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -261,6 +261,7 @@ impl ModalSpinner { let re = egui::Area::new(id) .movable(false) + .interactable(true) .fixed_pos(screen_rect.left_top()) .fade_in(self.fade_in) .show(ctx, |ui| { @@ -279,6 +280,8 @@ impl ModalSpinner { ui.painter() .rect_filled(screen_rect, egui::Rounding::ZERO, fill_color); + ui.allocate_response(screen_rect.size(), egui::Sense::click()); + let child_ui = egui::UiBuilder::new() .max_rect(screen_rect) .layout(egui::Layout::top_down(egui::Align::Center));