Events not fired for 1px elements
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
People
(Reporter: pawel.fus.88, Unassigned)
Details
Attachments
(1 file)
10.89 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Steps to reproduce:
Demo: https://jsfiddle.net/56azmgfb/1/
Mouse over rectangles.
Simplified demo: https://jsfiddle.net/pfez3qaw/
Real use case: hovering bars should display tooltip: https://jsfiddle.net/BlackLabel/r9ey7am4/
Actual results:
mouseOver
event is fired only sometimes.
Expected results:
mouseOver
event should be repeatedly called for every rectangle. Just like in other browsers.
It seems to be related to pointer-events: visiblePainted
- setting to all
resolves the issue: https://jsfiddle.net/56azmgfb/2/
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
In which version is this failing? I have a hard time reproducing this in Firefox Nightly. If I move the "mouse" quickly it'll skip sometimes, but that happens in Safari too.
Comment 4•5 years ago
|
||
Can you attach your about:support? Also what does window.devicePixelRatio
say? This is probably a hit testing issue, but I can't reproduce either here :/
Reporter | ||
Comment 5•5 years ago
|
||
> Also what does window.devicePixelRatio say?
It says `1`
>
Comment 6•5 years ago
|
||
On linux Firefox gets fewer mouseover events than Chrome, but in general neither guarantees mouseover is fired on the line, which
makes sense since OS itself doesn't guarantee mouse is ever exactly on top of the 1px line and also mousemove events are coalesced in browsers.
That said, I think Firefox should get more events - for some reason hit testing doesn't find the line often enough.
Updated•5 years ago
|
Updated•2 years ago
|
Description
•