notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 900d13ad4dc9a00cb384ba24968f7856212e90d6
parent 78210e8208e86b6b6ed0936cb6e7a4aea69e4b1e
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  3 Dec 2024 20:46:41 -0800

ui: fix duplicate hitbox widget ids

Fixes: 78210e8208e8 ("ui: fix quote repost hitbox")
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/ui/note/mod.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ui/note/mod.rs b/src/ui/note/mod.rs @@ -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), }; - let response = ui.interact(rect, hitbox_id, egui::Sense::click()); + let response = ui.interact(rect, ui.id().with(hitbox_id), egui::Sense::click()); response .widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Other, true, "hitbox"));