Skip to content

Commit

Permalink
ui: fix duplicate hitbox widget ids
Browse files Browse the repository at this point in the history
Fixes: 78210e8 ("ui: fix quote repost hitbox")
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Dec 4, 2024
1 parent 78210e8 commit 900d13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/note/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 900d13a

Please sign in to comment.