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
4 changes: 2 additions & 2 deletions src/browser/events/mouse_event.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

const std = @import("std");
const log = std.log.scoped(.mouse_event);
const log = @import("../../log.zig");

const parser = @import("../netsurf.zig");
const Event = @import("event.zig").Event;
Expand Down Expand Up @@ -69,7 +69,7 @@ pub const MouseEvent = struct {
});

if (!std.mem.eql(u8, event_type, "click")) {
log.warn("MouseEvent currently only supports listeners for 'click' events!", .{});
log.warn(.mouse_event, "unsupported mouse event", .{ .event = event_type });
}

return mouse_event;
Expand Down
1 change: 1 addition & 0 deletions src/log.zig
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub const Scope = enum {
web_api,
xhr,
polyfill,
mouse_event,
};

const Opts = struct {
Expand Down