We shipped high-precision coordinates, i.e., fractional coordinates, of PointerEvents in Nightly builds.

Summary: `|screenX|`, `screenY`, `clientX`, `clientY`, `pageX`, `pageY`, `offsetX` and `offsetY` of DOM events are now changed from `long` to `double`. And these values may be fractional values if the event is a `PointerEvent` whose type is NOT `click`, `auxclick` nor `contextmenu`.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1680669

Specification: CSS OM <https://drafts.csswg.org/cssom-view/#extensions-to-the-mouseevent-interface> and PointerEvents <https://w3c.github.io/pointerevents/#event-coordinates>

Platform coverage: All

Preference: `dom.event.pointer.fractional_coordinates.enabled`

DevTools bug: N/A

Other browsers: Chrome already supports this. Safari seems supporting it only for trusted events and only in preview builds.

web-platform-tests: trusted: <https://wpt.fyi/results/pointerevents/pointerevent_fractional_coordinates.html%3Fmouse?label=experimental&label=master&aligned <https://wpt.fyi/results/pointerevents/pointerevent_fractional_coordinates.html%3Fmouse?label=experimental&label=master&aligned>>, untrusted: <https://wpt.fyi/results/pointerevents/pointerevent_fractional_coordinates_untrusted.html?label=experimental&label=master&aligned <https://wpt.fyi/results/pointerevents/pointerevent_fractional_coordinates_untrusted.html?label=experimental&label=master&aligned>>

--
Masayuki Nakano<masay...@d-toybox.com>
Working on DOM, Events, editor and IME handling for Gecko

--
You received this message because you are subscribed to the Google Groups 
"dev-platform@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dev-platform+unsubscr...@mozilla.org.
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/cacc3257-5b8b-4ab4-a597-89da968a23d2%40d-toybox.com.

Reply via email to