| Summary: | Wheel event is not fired on any SVG element | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jay Wang <xiao.hk1997> | ||||
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Major | CC: | adodson, dino, graouts, karlcow, sabouhallawa, simon.fraser, thorton, victor.anan17, webkit-bug-importer, zimmermann | ||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||
| Version: | Safari 14 | ||||||
| Hardware: | Mac (Intel) | ||||||
| OS: | macOS 10.14 | ||||||
| Attachments: |
|
||||||
|
Description
Jay Wang
2021-06-05 08:16:47 PDT
Here is a related question on stack overflow (https://stackoverflow.com/questions/67836886/wheel-event-is-not-fired-on-a-svg-group-element-in-safari) This is actually applied to <rect> element as well which suggests the bug is applied to all SVG elements. Created attachment 430775 [details]
reduced test case
This test case shows the bug can happen with the SVG <rect> element.
I found that binding first a wheel event to a containing HTML element (like 'SVG' or document.body) makes this working. See my comment on stack overflow (https://stackoverflow.com/questions/67836886/wheel-event-is-not-fired-on-a-svg-group-element-in-safari). This is because we don't build event regions inside SVG content. |