fix(webdriver): default values for touch events (#12554)

This commit is contained in:
Maksim Sadym 2024-06-07 16:51:27 +02:00 committed by GitHub
parent b74addd452
commit 4d6298837f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -643,6 +643,10 @@ export class BidiTouchscreen extends Touchscreen {
{ {
type: ActionType.PointerDown, type: ActionType.PointerDown,
button: 0, button: 0,
width: 0.5 * 2, // 2 times default touch radius.
height: 0.5 * 2, // 2 times default touch radius.
pressure: 0.5,
altitudeAngle: Math.PI / 2,
}, },
], ],
}, },
@ -667,6 +671,10 @@ export class BidiTouchscreen extends Touchscreen {
x: Math.round(x), x: Math.round(x),
y: Math.round(y), y: Math.round(y),
origin: options.origin, origin: options.origin,
width: 0.5 * 2, // 2 times default touch radius.
height: 0.5 * 2, // 2 times default touch radius.
pressure: 0.5,
altitudeAngle: Math.PI / 2,
}, },
], ],
}, },