This commit is contained in:
Alessandro Mauri 2024-10-31 13:04:30 +01:00
parent f48151b38e
commit 28598f0575
6 changed files with 106 additions and 8 deletions

View file

@ -23,9 +23,6 @@ fn ElemEvents! Ctx.button(&ctx, String label, Rect size)
// TODO: 3. Fill the button specific fields
}
// TODO: Check for interactions
// FIXME: this is not how normal buttons work, usually focus follows both
// mouse hover and mouse down
c_elem.events = ctx.get_elem_events(c_elem);
if (parent.flags.has_focus) {
if (c_elem.events.mouse_hover) {