Re: [pointerevents] Define `pointermove` and `pointerrawupdate` may have delta from previous corresponding pointer event as `movementX` and `movementY` (#535)

> [@masayuki-nakano](https://github.com/masayuki-nakano) do browsers currently use non-fractional values with mousemove?

First, Firefox always use integer coordinates, and also as far as I've checked, Chromium always use `std::floor` in [the getter methods](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/events/mouse_event.h;l=149-150;drc=9f044ece0d8bf5fa8a356cfa81f7e731e886581b) of `MouseEvent`.

I'm not sure about Safari, but looks like `WebKit`'s `MouseEvent` is [always initialized with integer coordinates](https://searchfox.org/wubkat/rev/eb60a003e2487c2a8f34aaf8ce8f5d5af280ed55/Source/WebCore/dom/MouseEvent.cpp#116). And anyway, it seems that they don't support fractional coordinates even with `PointerEvent`.
* https://wpt.fyi/results/pointerevents/pointerevent_fractional_coordinates.html%3Fmouse?label=experimental&label=master&aligned
* https://wpt.fyi/results/pointerevents/pointerevent_fractional_coordinates_untrusted.html?label=experimental&label=master&aligned

-- 
GitHub Notification of comment by masayuki-nakano
Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/535#issuecomment-2655126724 using your GitHub account


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

Received on Thursday, 13 February 2025 00:08:07 UTC