Skip to content

Commit

Permalink
Update docs/src/touch-events.md
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Gozman <[email protected]>
Signed-off-by: Yury Semikhatsky <[email protected]>
  • Loading branch information
yury-s and dgozman authored Jan 3, 2025
1 parent 657ed71 commit 9eedf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/touch-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: "Emulating touch events"

## Introduction

Mobile web sites may listen to [touch events](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events) and react to user touch gestures such swipe, pinch, tap etc. To test such functionality you can manually generate [TouchEvent]s in the page context using [`method: Locator.evaluate`].
Mobile web sites may listen to [touch events](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events) and react to user touch gestures such as swipe, pinch, tap etc. To test this functionality you can manually generate [TouchEvent]s in the page context using [`method: Locator.evaluate`].

If your web application relies on [pointer events](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events) instead of touch events, you can use [`method: Locator.click`] and raw mouse events to simulate single touch point events, because pointer events are triggered for both mouse gestures and touch interactions.

Expand Down

0 comments on commit 9eedf60

Please sign in to comment.