Re: [pointerevents] Add note about rounding coordinates for click, auxclick, contextmenu (#404)

> We logically expect that all UAs would pick double coordinates for PointerEvents (as per CSSOM) even if those UAs remain stuck with long coordinates in MouseEvents (as per UI Event spec)

we don't normatively, explicitly, actually say this in our spec at the moment, right? A UA could implement PEs but with `long` rather than `double`? (as normatively the WebIDL only says we extend `MouseEvent`, and the CSSOM change is mentioned in an informative note only.

> we can't move MouseEvent coordinates away from long for compat reasons

but IF a user agent decided to apply the CSSOM fractional coordinates to their regular MouseEvent as well, then rounding click/auxclick/contextmenu to `long` would then cause the same weird mismatch, no? or is the expectation that the CSSOM change will never actually make it to regular MouseEvent ?

> The two points above are orthogonal to compat MouseEvents.

yes and my PR doesn't mention compat events. when I talk about MouseEvent, I mean the actual ones.


-- 
GitHub Notification of comment by patrickhlauke
Please view or discuss this issue at https://github.com/w3c/pointerevents/pull/404#issuecomment-893701746 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 5 August 2021 18:55:07 UTC