mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
Merge pull request #935 from lightpanda-io/mouse-event-log
use internal logger instead of std.log
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const log = std.log.scoped(.mouse_event);
|
const log = @import("../../log.zig");
|
||||||
|
|
||||||
const parser = @import("../netsurf.zig");
|
const parser = @import("../netsurf.zig");
|
||||||
const Event = @import("event.zig").Event;
|
const Event = @import("event.zig").Event;
|
||||||
@@ -69,7 +69,7 @@ pub const MouseEvent = struct {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!std.mem.eql(u8, event_type, "click")) {
|
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;
|
return mouse_event;
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ pub const Scope = enum {
|
|||||||
web_api,
|
web_api,
|
||||||
xhr,
|
xhr,
|
||||||
polyfill,
|
polyfill,
|
||||||
|
mouse_event,
|
||||||
};
|
};
|
||||||
|
|
||||||
const Opts = struct {
|
const Opts = struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user