Skip to content

movementX and movementY for pointermove (and pointerrawupdate) should be the difference from the previous event for the same pointerId #104

@masayuki-nakano

Description

@masayuki-nakano

It's defined as having non-zero values for pointermove and I suggested that they should be available with pointerrawupdate too.

However, the Pointer Lock 2.0 spec does not mention about pointerId. I think that the values should be difference from the corresponding event whose pointerId is the same as the event.

E.g., when there are 2 pointers,

  1. pointermove for pointerId: 1
  2. pointermove for pointerId: 2 (should be zero)
  3. pointerrawupdate for pointerId: 1 (should be diff from the first pointermove)
  4. pointerrawupdate for pointerId: 1 (should be diff from the previous pointerrawupdate)
  5. pointermove for pointerId: 1 (should be diff from the first pointermove)
  6. pointerrawupdate for pointerId: 2 (should be diff from the second pointermove)
  7. pointerrawupdate for pointerId: 2 (should be diff from the previous pointerawupdate)
  8. pointermove for pointerId: 2 (should be diff from the second pointermove)

ccing: @smaug---- @mustaqahmed @daxpedda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions