Skip to content

Commit

Permalink
Fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Sep 2, 2024
1 parent 36ee61b commit 556de04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/egui/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2731,12 +2731,12 @@ impl Ui {
builder: UiBuilder,
content: impl FnOnce(&mut Self, Option<Response>) -> R,
) -> InnerResponse<R> {
let id_source = builder.id_source.unwrap_or(Id::new("interact_scope"));
let id = self.id.with(Id::new(id_source));
let id_salt = builder.id_salt.unwrap_or(Id::new("interact_scope"));
let id = self.id.with(Id::new(id_salt));
let response = self.ctx().read_response(id);

self.scope_dyn(
builder.sense(sense).id_source(id_source),
builder.sense(sense).id_salt(id_salt),
Box::new(|ui| {
let inner = content(ui, response);
let response = ui.interact_bg();
Expand Down

0 comments on commit 556de04

Please sign in to comment.