File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1717// along with this program. If not, see <https://www.gnu.org/licenses/>.
1818
1919const std = @import ("std" );
20- const log = std . log . scoped ( .mouse_event );
20+ const log = @import ( "../../log.zig" );
2121
2222const parser = @import ("../netsurf.zig" );
2323const Event = @import ("event.zig" ).Event ;
@@ -69,7 +69,7 @@ pub const MouseEvent = struct {
6969 });
7070
7171 if (! std .mem .eql (u8 , event_type , "click" )) {
72- log .warn ("MouseEvent currently only supports listeners for 'click' events! " , .{});
72+ log .warn (.mouse_event , "unsupported mouse event " , .{ . event = event_type });
7373 }
7474
7575 return mouse_event ;
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ pub const Scope = enum {
4040 web_api ,
4141 xhr ,
4242 polyfill ,
43+ mouse_event ,
4344};
4445
4546const Opts = struct {
You can’t perform that action at this time.
0 commit comments