Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/layout/Chooser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ fn carryLifted(self: *Chooser) void {
} else {
f.beginViewDrag(lift.id, lift.rect);
// From the motion that lifted it on: a release in the same frame is the drag's too.
if (dvui.currentWindow().captures[0]) |cm| // ZIG017: per-pointer capture (dvui#1014); 0 is the mouse
if (dvui.captureMouseGet()) |cm|
dvui.captureMouseCustom(cm, lift.event);
}
self.carried = lift.id;
Expand Down
2 changes: 1 addition & 1 deletion plugins/workbench/src/Workspace.zig
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ fn lift(id: []const u8, from: dvui.Rect.Physical, event_num: u16) void {
wb.carried_tab_key = std.hash.Wyhash.hash(0, id);
runtime.host().beginViewDrag(id, from);
if (runtime.host().viewDragSurface() == null) return;
if (dvui.currentWindow().captures[0]) |cm| // ZIG017: per-pointer capture (dvui#1014); 0 is the mouse
if (dvui.captureMouseGet()) |cm|
dvui.captureMouseCustom(cm, event_num);
}

Expand Down
Loading