w3c / uievents

UI Events
https://w3c.github.io/uievents/
Other
145 stars 52 forks source link

Converge with CSSOM-View #24

Open garykac opened 8 years ago

garykac commented 8 years ago

Copied from W3C Bugzilla: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25928

Anne 2014-05-30 18:27:08 UTC

Seems like it might be time to fix this weirdness: http://www.w3.org/TR/cssom-view/#extensions-to-the-mouseevent-interface

Change stuff from integers to floats, add the missing members, and define the members better.

Comment 1 Travis Leithead [MSFT] 2014-05-30 18:42:11 UTC

Awesome. Thanks for the head's up.

Comment 2 Arthur Barstow 2015-03-21 15:11:51 UTC

Bulk move of all D3E bugs to the UI Events component.

zcorpan commented 8 years ago

Also see https://www.w3.org/Bugs/Public/show_bug.cgi?id=29518 and https://www.w3.org/Bugs/Public/show_bug.cgi?id=25323#c3

cvrebert commented 7 years ago

See also https://github.com/w3c/csswg-drafts/commit/dc36ecd7a46b173f958dafa736a84eb9753afb7b

saschanaz commented 3 years ago

Do we really want to make them floats when everyone is returning integers? (No objection, just curious)

zcorpan commented 3 years ago

They're double in Chromium

https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/events/mouse_event.idl;l=26

long in Gecko and WebKit

https://dxr.mozilla.org/mozilla-central/source/dom/webidl/MouseEvent.webidl?q=mouseevent.webidl&redirect_type=direct#24 https://github.com/WebKit/webkit/blob/950143da027e80924b4bb86defa8a3f21fd3fb1e/Source/WebCore/dom/MouseEvent.idl#L28

saschanaz commented 3 years ago

Interesting, Blink somehow still only sends integer values at least on my Surface screen (on Windows).

Edit: Ah it does send .5 values but only for pointer events. Cool. (Tested on https://patrickhlauke.github.io/touch/tests/event-listener-coordinates.html)

image

zcorpan commented 3 years ago

Yeah, indeed. These look like the relevant bugs for MouseEvent:

https://bugs.chromium.org/p/chromium/issues/detail?id=660057 https://bugs.chromium.org/p/chromium/issues/detail?id=456625

They're marked as Fixed. Was it changed back? cc @eirage