ui: fix duplicate hitbox widget ids
Fixes: 78210e8208 ("ui: fix quote repost hitbox")
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -636,7 +636,7 @@ fn maybe_note_hitbox(ui: &mut egui::Ui, hitbox_id: egui::Id) -> Option<Response>
|
|||||||
max: pos2(container_rect.max.x, container_rect.min.y + note_size.y),
|
max: pos2(container_rect.max.x, container_rect.min.y + note_size.y),
|
||||||
};
|
};
|
||||||
|
|
||||||
let response = ui.interact(rect, hitbox_id, egui::Sense::click());
|
let response = ui.interact(rect, ui.id().with(hitbox_id), egui::Sense::click());
|
||||||
|
|
||||||
response
|
response
|
||||||
.widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Other, true, "hitbox"));
|
.widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Other, true, "hitbox"));
|
||||||
|
|||||||
Reference in New Issue
Block a user