From 9eedf60f74c0aef1b3a902d14819a13c5e6291c6 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 3 Jan 2025 10:40:30 -0800 Subject: [PATCH] Update docs/src/touch-events.md Co-authored-by: Dmitry Gozman Signed-off-by: Yury Semikhatsky --- docs/src/touch-events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/touch-events.md b/docs/src/touch-events.md index ad0d4c6858..24b47360b3 100644 --- a/docs/src/touch-events.md +++ b/docs/src/touch-events.md @@ -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.