We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b7a7c0 commit 505ad03Copy full SHA for 505ad03
src/cdp/domains/input.zig
@@ -57,7 +57,7 @@ fn dispatchMouseEvent(cmd: anytype) !void {
57
const page = bc.session.currentPage() orelse return;
58
59
const mouse_event = Page.MouseEvent{
60
- .x = @intFromFloat(@floor(params.x)), // Decimal pixel values are not understood by netsurf or our rendered
+ .x = @intFromFloat(@floor(params.x)), // Decimal pixel values are not understood by netsurf or our renderer
61
.y = @intFromFloat(@floor(params.y)), // So we convert them once at intake here. Using floor such that -0.5 becomes -1 and 0.5 becomes 0.
62
.type = switch (params.type) {
63
.mousePressed => .pressed,
0 commit comments