mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(webdriver): default values for touch events (#12554)
This commit is contained in:
parent
b74addd452
commit
4d6298837f
@ -643,6 +643,10 @@ export class BidiTouchscreen extends Touchscreen {
|
||||
{
|
||||
type: ActionType.PointerDown,
|
||||
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),
|
||||
y: Math.round(y),
|
||||
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,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user