Skip to content

Commit 505ad03

Browse files
committed
typo
1 parent 2b7a7c0 commit 505ad03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdp/domains/input.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn dispatchMouseEvent(cmd: anytype) !void {
5757
const page = bc.session.currentPage() orelse return;
5858

5959
const mouse_event = Page.MouseEvent{
60-
.x = @intFromFloat(@floor(params.x)), // Decimal pixel values are not understood by netsurf or our rendered
60+
.x = @intFromFloat(@floor(params.x)), // Decimal pixel values are not understood by netsurf or our renderer
6161
.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.
6262
.type = switch (params.type) {
6363
.mousePressed => .pressed,

0 commit comments

Comments
 (0)