Re: [whatwg/dom] Specify addEventListener default passive hack for smoothscroll.js (Issue #1088)

As noted in https://bugs.chromium.org/p/chromium/issues/detail?id=501568

> firefox doesn't support 'mousewheel' events, only the standard 'wheel' events

Removing support for `mousewheel` events from Chromium and WebKit seems like a possible alternative solution here.

Chromium has use counters for only `mousewheel`, only `wheel`, or `mousewheel`+`wheel` listeners being invoked ([implementation](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/dom/events/event_target.cc;l=783-799))

- [WheelEvent](https://chromestatus.com/metrics/feature/timeline/popularity/1126) ~5.35%
- [MouseWheelEvent](https://chromestatus.com/metrics/feature/timeline/popularity/1125) ~3.52%
- [MouseWheelAndWheelEvent](https://chromestatus.com/metrics/feature/timeline/popularity/1127) ~0.5%

Pretty high numbers... How come Firefox is able to not support the `mousewheel` event? I found this bug [Consider supporting the legacy mousewheel event for interop](https://bugzilla.mozilla.org/show_bug.cgi?id=1529953) which cites 3 webcompat.com issues, so they're taking *some* web compat hit by not supporting it.

In httparchive (total of 14,951,058 pages), there are 0 pages that hit the SmoothScrollJSInterventionActivated.

<details>
<summary>query</summary>

```sql
SELECT
  url
FROM
  `httparchive.pages.2022_06_09_mobile`
WHERE
  STRPOS(payload, r'SmoothScrollJSInterventionActivated') > 0
```

</details>

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1088#issuecomment-1158560921
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1088/1158560921@github.com>

Received on Friday, 17 June 2022 07:04:07 UTC