Fix default passive option
@@ -358,9 +358,8 @@ impl GlobalHandlers {
&{
let mut opts = web_sys::AddEventListenerOptions::new();
opts.capture(true);
- if desc.passive {
- opts.passive(true);
- }
+ // We need to explicitly set passive to override any browser defaults
+ opts.passive(desc.passive);
opts
},
)
