fix(vaxis): prevent mouse drag operations from becoming sticking
This commit is contained in:
parent
5ca9e18ee2
commit
2d904d5122
1 changed files with 1 additions and 0 deletions
|
@ -407,6 +407,7 @@ fn dispatch_mouse(ctx: *anyopaque, y: c_int, x: c_int, cbor_msg: []const u8) voi
|
||||||
const from = tp.self_pid();
|
const from = tp.self_pid();
|
||||||
self.unrendered_input_events_count += 1;
|
self.unrendered_input_events_count += 1;
|
||||||
self.send_mouse(y, x, from, m) catch |e| self.logger.err("dispatch mouse", e);
|
self.send_mouse(y, x, from, m) catch |e| self.logger.err("dispatch mouse", e);
|
||||||
|
self.drag_source = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn dispatch_mouse_drag(ctx: *anyopaque, y: c_int, x: c_int, dragging: bool, cbor_msg: []const u8) void {
|
fn dispatch_mouse_drag(ctx: *anyopaque, y: c_int, x: c_int, dragging: bool, cbor_msg: []const u8) void {
|
||||||
|
|
Loading…
Add table
Reference in a new issue