╭ changed ────────╮ │src/main_wasm.zig│ ╰─────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │106 │ │107 fn onMouseClick(focus_id: usize) !void { │ │108 const root_ptr = if (root) |*root_value| root_value else return error.NotStarted;│ │109 - try root_ptr.getFocus().setFocus(focus_id); │ │109 + const root_focus = root_ptr.getFocus(); │ │110 + try root_focus.setFocus(focus_id); │ │111 + // forward a left press into the widget tree for plain in-tree clickables │ │112 + if (root_focus.children.get(focus_id)) |child| { │ │113 + const r = child.rect; │ │114 + try root_ptr.input(allocator, .{ .mouse = .{ │ │115 + .x = r.x, │ │116 + .y = r.y, │ │117 + .action = .{ .press = .left }, │ │118 + } }, root_focus); │ │119 + } │ │120 } │ │121 │ │122 fn consoleLog(arg: []const u8) void { │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯