Reproduction example
https://codesandbox.io/s/userevent-touchmove-skz767?file=/src/App.test.js
Prerequisites
- Use version >= 14.4.0
- Setup a page that listens to pointerdown and pointermove, and logs them.
- 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
Reproduction example
https://codesandbox.io/s/userevent-touchmove-skz767?file=/src/App.test.js
Prerequisites
Expected behavior
The new coordinates from the second
pointermoveevent should be logged. (125, 100)Actual behavior
The initial cordinate from the initial
pointerdownevent 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