This commit is contained in:
Karl Seguin
2026-07-15 11:42:18 +08:00
parent 09a4092634
commit eab33428fb

View File

@@ -108,10 +108,10 @@ const AddEventListenerOptions = union(enum) {
// html and body elements.
fn defaultPassiveValue(self: *EventTarget, typ: []const u8) bool {
const scroll_blocking_event_types = std.StaticStringMap(void).initComptime(.{
.{"touchstart", {}},
.{"touchmove", {}},
.{"wheel", {}},
.{"mousewheel", {}},
.{ "touchstart", {} },
.{ "touchmove", {} },
.{ "wheel", {} },
.{ "mousewheel", {} },
});
if (scroll_blocking_event_types.has(typ) == false) {
return false;