Улучшены табы

This commit is contained in:
2026-02-27 02:44:26 +03:00
parent 0119e51a27
commit e527cc4999
2 changed files with 6 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ fn documentTab(ctx: *WindowContext, index: usize, callback: *?DocCallback) void
.mouse => |*mouse| {
if (!dvui.eventMatchSimple(e, row_data)) continue;
hovered = true;
if (mouse.action == .press and mouse.button == .left) {
if (mouse.action == .release and mouse.button == .left) {
select_row = true;
}
},
@@ -67,6 +67,7 @@ fn documentTab(ctx: *WindowContext, index: usize, callback: *?DocCallback) void
.gravity_y = 0.5,
})) {
callback.* = .{ .close = index };
select_row = false;
}
}
}