Skip to content
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 values in coalesced events #74

Open
mustaqahmed opened this issue Jul 21, 2021 · 0 comments
Open

MovementX/Y values in coalesced events #74

mustaqahmed opened this issue Jul 21, 2021 · 0 comments

Comments

@mustaqahmed
Copy link
Member

The PointerLock extension defining movementX/Y also applies to PointerEvents (as a subclass of MouseEvent), and that calls for a clarification in movementX/Y values "around" coalesced events.

When Chrome decides not to send all pointermove events for performance reasons, the dispatched event's movementX (movementY) is updated to be the sum of individual movementX values (respectively movementY values) in coalesced events.

Should we add a line in the PointerLock spec mentioning it?

In PointerEvents spec, we had a non-normative text mentioning this idea but PEWG today decided that it does not belong there. In my opinion, the PointerLock spec should mention it because it would be useful for developers who care about movementX/Y values in individual coalesced events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant