Skip to content

14.4: pointermove events no longer trigger #1047

@dermoumi

Description

@dermoumi

Reproduction example

https://codesandbox.io/s/userevent-touchmove-skz767?file=/src/App.test.js

Prerequisites

  1. Use version >= 14.4.0
  2. Setup a page that listens to pointerdown and pointermove, and logs them.
  3. Trigger pointer events in the test like the following:
    const touchable = screen.getByTitle('container')
    await user.pointer([
      {
        keys: "[TouchA>]",
        target: touchable,
        coords: { x: 100, y: 100 },
      },
      {
        pointerName: "TouchA",
        target: touchable,
        coords: { x: 125, y: 100 },
      },
    ]);

Expected behavior

The new coordinates from the second pointermove event should be logged. (125, 100)

Actual behavior

The initial cordinate from the initial pointerdown event are logged. (100, 100)

User-event version

14.4.0

Environment

Testing Library framework:

JS framework:

Test environment:

DOM implementation:

Additional context

Works just fine on version 14.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions