New issue
Advanced search Search tips

Issue 660057 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Launch-OWP
Launch-Accessibility: ----
Launch-Exp-Leadership: ----
Launch-Leadership: ----
Launch-Legal: ----
Launch-M-Approved: ----
Launch-M-Target: 56-Beta
Launch-Privacy: ----
Launch-Security: ----
Launch-Test: ----
Launch-UI: ----
Rollout-Type: ----

Blocking:
issue 456625



Sign in to add a comment

Fractional co-ordinates in MouseEvents

Project Member Reported by mustaq@chromium.org, Oct 27 2016

Issue description

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

Description: Show this description

Comment 2 by mustaq@chromium.org, Oct 28 2016

Description: Show this description
Blocking: 456625

Comment 4 by mustaq@chromium.org, Nov 18 2016

Status: Fixed (was: Assigned)
This OWP bug covers only the types of the coordinate fields, which has been fixed recently (through  Issue 607948 ).

The blocked bug ( Issue 456625 ) is about exposing fractional coordinates in browser-dispatched events. That's a riskier change, will do separately.
Labels: Hotlist-Input-Dev

Sign in to add a comment