From 9f318edf0fa2c33b16fa82aa1c03d8f06dfc630c Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 3 Jan 2025 10:40:38 -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 24b47360b3..9f0079e253 100644 --- a/docs/src/touch-events.md +++ b/docs/src/touch-events.md @@ -7,7 +7,7 @@ title: "Emulating touch events" 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. +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 a single-finger touch, and this will trigger all the same pointer events. ### Dispatching TouchEvent