Change description:
Update all MouseEvent coordinates from integers to floating points.
Changes to API surface:
The types of the following fields in MouseEvent will change from long to double:
MouseEvent.screenX
MouseEvent.screenY
MouseEvent.clientX
MouseEvent.clientY
MouseEvent.pageX
MouseEvent.pageY
MouseEvent.x
MouseEvent.y
The corresponding coordinates in PointerEvent, WheelEvent and DragEvent will also change since these event classes inherit from MouseEvent.
Links:
CSS OM View Spec: https://drafts.csswg.org/cssom-view
For PointerEvent which inherits MouseEvent, the community group reached consensus: https://github.com/w3c/pointerevents/issues/107
Support in other browsers:
IE/Edge: Already shipped fractional coordinates in PointerEvents.
Firefox: Supported our proposal in PointerEvents WG.
jQuery: Supported our proposal in PointerEvents WG.
Safari: No public signals.
Change description:
Update all MouseEvent coordinates from integers to floating points.
Changes to API surface:
The types of the following fields in MouseEvent will change from long to double:
MouseEvent.screenX
MouseEvent.screenY
MouseEvent.clientX
MouseEvent.clientY
MouseEvent.pageX
MouseEvent.pageY
MouseEvent.x
MouseEvent.y
The corresponding coordinates in PointerEvent, WheelEvent and DragEvent will also change since these event classes inherit from MouseEvent.
Links:
CSS OM View Spec: https://drafts.csswg.org/cssom-view
For PointerEvent which inherits MouseEvent, the community group reached consensus: https://github.com/w3c/pointerevents/issues/107
Support in other browsers:
IE/Edge: Already shipped fractional coordinates in PointerEvents.
Firefox: Supported our proposal in PointerEvents WG.
jQuery: Supported our proposal in PointerEvents WG.
Safari: No public signals.
Change description:
Update all MouseEvent coordinates from integers to floating points.
Changes to API surface:
The types of the following fields in MouseEvent will change from long to double:
MouseEvent.screenX
MouseEvent.screenY
MouseEvent.clientX
MouseEvent.clientY
MouseEvent.pageX
MouseEvent.pageY
MouseEvent.x
MouseEvent.y
The corresponding coordinates in PointerEvent, WheelEvent and DragEvent will also change since these event classes inherit from MouseEvent.
Links:
CSS OM View Spec: https://drafts.csswg.org/cssom-view
For PointerEvent which inherits MouseEvent, the community group reached consensus: https://github.com/w3c/pointerevents/issues/107
Support in other browsers:
IE/Edge: Already shipped fractional coordinates in PointerEvents.
Firefox: Supported our proposal in PointerEvents WG.
jQuery: Supported our proposal in PointerEvents WG.
Safari: No public signals.
Comment 1 by mustaq@chromium.org
, Oct 28 2016