Улучшены табы
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user