From 002a631cfdf87d239087605b9fab628e3f96319a Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 3 Jan 2025 10:41:02 -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 9f0079e253..8d7000945f 100644 --- a/docs/src/touch-events.md +++ b/docs/src/touch-events.md @@ -15,7 +15,7 @@ You can dispatch touch events to the page using [`method: Locator.dispatchEvent` #### Emulating pan gesture -In the example below, we emulate pan gesture that is expected to move the map. We only initialize `clientX/clientY` coordinates of the touch point as the we app reads only those, in a more complex scenario you may need to also set `pageX/pageY/screenX/screenY` if your app needs them. +In the example below, we emulate pan gesture that is expected to move the map. The app under test only uses `clientX/clientY` coordinates of the touch point, so we initialize just that. In a more complex scenario you may need to also set `pageX/pageY/screenX/screenY`, if your app needs them. ```js import { test, expect, devices, Locator } from '@playwright/test';