-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
movementX/Y to be double instead of long #24
Comments
I think movementX should be modified the same as screenX. I do not think this will break any existing use. I've opened w3c/csswg-drafts#1634 to help determine where to make this spec change. |
@smaug---- I was looking at these properties and screenX/Y for pointerevents and mouseevents on FF. It seems that even screenX/Y is long for pointerevents. Do you think it is possible to change FF to expose double coordinates for pointerevents and also move the movementX/Y to double accordingly? |
should be doable. If nothing else, it is just a webidl change. |
Maybe the type is correct by there might be some sort of rounding/flooring happen for that. For example in Chrome we do that for MouseEvents for compat reasons. So even though the type is double the numbers that are exposes are long. But we thought since pointerevents are new we just expose the double version of the number. |
As @smaug---- mentioned above, changing the webidl types to fractional is the first step anyway, and then we can do what we did before:
@EiraGe has agreed to look into this. |
Update coordinate field to match [MouseEvent extension](https://drafts.csswg.org/cssom-view/#extensions-to-the-mouseevent-interface) in CCSOM View Module. Close #24
Following the extension that changes screenX/Y type to double I'd suggest we also change the type of movementX/Y to double. @scheib do you imagine any scenario that this might break stuff for any developers?
The text was updated successfully, but these errors were encountered: